Domanda di colloquio di TikTok

Given an integer, reverse it.

Risposta di colloquio

Anonimo

7 ott 2024

I reversed it by turning it into a string and then iterating through it backwards and adding it ot a new string.