https://ide.codingblocks.com/s/58699
can i do like this .What is the time complexity ?
Hey Vijay, there can be many ways to solve a problem, so yes you can do it like this also, and its time complexity will be O(no. of digits in the given number).