@greghogg5: Google LOVES This Coding Interview Question! Happy Number - Leetcode 202 Crack big tech at algomap.io! #coding #leetcode #programming #interview

Greg Hogg
Greg Hogg
Open In TikTok:
Region: CA
Tuesday 17 June 2025 19:26:17 GMT
11743
422
3
11

Music

Download

Comments

nanjiang97
nanjiang97 :
I think this can be solved with constant space, using cycle detection algorithm
2025-06-24 03:17:32
0
skelda
Skelda Nulaosm :
hey, I guess this is not that big of an optimization, but since you need at most 10 squares, why not make a array of 10 elements and when calculating the square of a number put it in the array so that you don't need to recalculate it. the way you did it you might calculate one square 10 times
2025-06-18 06:01:38
2
padubya
Phillip 🇨🇦 :
👍👍👍
2025-07-17 05:55:56
0
To see more videos from user @greghogg5, please go to the Tikwm homepage.

Other Videos


About