Relative Content

Tag Archive for pythonjavac++c

wap to count number of digit or length of the string of given input inO(1) time

wap to count number of digit or length of the string of given input inO(1) time
Provide me a best solution without using any loops in O(1) time complexity and constant space complexity
Explanation = In this program when we take number input only then the output is count the number of digit otherwise we take a string input then the output are give to length of the string