Solution for CodeSignal: addTwoHugeNumbers (Linked List part 👯)

Task description on Codesignal I’ve spend decent amount of time in order to figure out that I don’t need any string manipulation in this task 😅. My first try was adding missing zeros to the beginning of number slot, convert int to str and back, then the resulting string split by 4 but no luck … It turned out that is simple math 😀 I wanna share my solution with detailed comments ⬇️ (Time complexity O(n) )...

September 10, 2020 · 3 min