
Naive: Time Complexity: O(log₁₀(n)) Space Complexity: O(1) def countDigits(n:int) -> int: int res = 0 while (x>0): x = x//10 res += 1 return res Recursive Way: Time Complexity: O(log₁₀(n)) Space Complexity: O(log₁₀(n)) de...
4k | 5⭐Hackerrank | Full Stack Web Developer | Competetive Programmer | Software Developer at Zeus Learning | MotiDivya
Extremely enthusiastic in the field of software and web development, Divyesh is continuously learning and gathering knowledge to remain abreast. Solving problems using Python(3) is intriguing for him so it's his niche currently working in Zeus Learning | MotiDivya
Markdown supported · ⌘↵ to post
No responses yet.