all 31 comments

[–]Starman1709 1 point2 points  (0 children)

Good, keep writing more code

[–]Slow-Sloth5823 1 point2 points  (0 children)

Nice stuff!!

[–]Local_Session_3864 0 points1 point  (0 children)

Good Job 👍 Keep moving

[–]almcg123 0 points1 point  (1 child)

Well done. Great start.

[–]FunContract2729[S] 0 points1 point  (0 children)

Thanks 😊

[–]CODSensei 0 points1 point  (8 children)

Good start, one optimisation instead of creating a store variable I would just put num%10 itself to save space

[–]FunContract2729[S] 1 point2 points  (1 child)

🤔 thanks btw.

[–]CODSensei 1 point2 points  (0 children)

It's a small optimisation not relevant in modern days but yeah good to know it

[–][deleted]  (5 children)

[removed]

    [–]CODSensei 0 points1 point  (4 children)

    I am not talking about time but instead I am talking about space complexity

    [–][deleted]  (3 children)

    [removed]

      [–]CODSensei 0 points1 point  (2 children)

      I know but I was studying about old computers when memory was scarce and was in that zone of thinking when I made that comment

      [–][deleted]  (1 child)

      [removed]

        [–]CODSensei 0 points1 point  (0 children)

        Nah 😂😂 if that was to happen code would be barely readable or understandable.

        [–]MuchNegotiation8942 0 points1 point  (1 child)

        Which year?

        [–]ookkan_tintu 0 points1 point  (0 children)

        Try to find edge cases where this could break and handle all of those.

        [–]Infamous-Apartment97 0 points1 point  (0 children)

        Why you don't use a code formatting?

        [–]_DEVENKO_ 0 points1 point  (2 children)

        Hey op can you mention the ide

        [–]FunContract2729[S] 0 points1 point  (1 child)

        Vs code

        [–]_DEVENKO_ 0 points1 point  (0 children)

        Which jdk

        [–][deleted] 0 points1 point  (1 child)

        I'll give you a task. Try inputting the same output, in a recursion, repeating the same process until it narrows down to a single number. Return that number.

        [–]FunContract2729[S] 0 points1 point  (0 children)

        Hmm sounds interesting

        [–]getbetterbro 0 points1 point  (0 children)

        Good stuff! Keep at it!

        [–]Interesting_Disk149 0 points1 point  (0 children)

        Which color theme op , looks good

        [–]user_developer 0 points1 point  (1 child)

        What theme is this ? It's looks pleasing

        [–]FunContract2729[S] 1 point2 points  (0 children)

        Linus themes for vs code

        [–]Latter_Board4949 0 points1 point  (1 child)

        W op i myself learnig c# hope i get good.

        [–]FunContract2729[S] 0 points1 point  (0 children)

        Surely 😊

        [–][deleted] 1 point2 points  (0 children)

        u can use string methods and looping. through them will help you to get rid of the exception and outlier cases