4 ms·
Yeowch! Mine (g034.d) shows up as the second red dot from the left. I submitted a quick pseudocode answer without any research in an effort to mimic interview
by dpritchett 16y ago
Yeowch! Mine (g034.d) shows up as the second red dot from the left. I submitted a quick pseudocode answer without any research in an effort to mimic interview whiteboarding conditions.
I had no idea my solution would be automatically validated - I was happy enough to get an in-place O(n) solution. The complete lack of pointers on my part must be what separated me from the cluster of correct solutions at the center.
- RiderOfGiraffes 16y agoYou use sizeof(test_string) which isn't what you want. As an experiment I fixed that, but you had another problem as well which also caused it to fail.