Write a program to replace the 2nd occurrence of the ‘e’ character in a string with ‘@’.
Write a program to replace the 2nd occurrence of the ‘e’ character in a string with ‘@’.
题目类型: 技术面试题
这是一道技术面试题,常见于澳洲IT公司面试中。
难度: easy
标签: interviewbit, persistent, company-specific
目标公司: Persistent Systems
参考答案摘要
Let's consider a String str, a character array ch[], a number n, and a replacing character. In the string, we will replace the 2nd occurrence of a specific character i.e., e within the character array...
本题提供 STAR 原则详细解答和技术解析,登录匠人学院学习中心即可查看完整答案。