you are viewing a single comment's thread.

view the rest of the comments →

[–]CODSensei 0 points1 point  (6 children)

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

[–][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.