Write a program to find the numbers divisble by 3 in a string - and reverse its indexes eg : - input : String s = "123456789" output String s = "129456783"
AnswerBot
3mo
Program to find numbers divisible by 3 in a string and reverse their indexes.
Iterate through the string and check if each character is a number divisible by 3.
Store the divisible numbers in an array a...read more
Help your peers!
Add answer anonymously...
Popular interview questions of Java Developer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app