25-Sep-2024 Coding
25-Sep-2024 Coding
https://www.linkedin.com/in/debugwithshubham/
https://www.instagram.com/debugwithshubham/
https://topmate.io/debugwithshubham
https://t.me/debugwithshubham
QUESTION-1
Question-1
input1: 5
input2: 3
input3: [5,10,15,20,25]
input4: [15,30,20,30,25]
Question-2
Input:
input1: “mercermettl:
input2: 11
input3: “t”
Output:
2
Explanation:
The string is "mercermettl" with a length of 11, and the
character ’t” occurs 2 times in the string.
Solution of the First Problem
Python
Java
C++
Solution of the Second Problem
Java