3 ms·
C'mon, this is not about knowing some algorithm by heart. He clearly describes the specifications and gives a test case. With that information you should be abl
by Too 13y ago
C'mon, this is not about knowing some algorithm by heart. He clearly describes the specifications and gives a test case. With that information you should be able to "troubleshoot/design/architect/solve" a solution to his problem even if you've never seen it before.
This is a fizzbuzz, someone posted a quite sparse C++ solution in 75 LOC above. C++ ! That would be half in python, less than one laptop screens height.