Message from C, C++ talks

May 2019

— Do u know about spiral matrix

— ?

— Yh you're right

— Don't be afraid to Google, mate :)

— 

It usually takes 4 loops. So the interviewer was actually looking for a code which contains only max 2 loops

— Out of 100 only 3 guys solved it 😖😖

— If u don't understand how it works - use debugger step by step

— Yeah sure

— After that try to write it by urself

— There's actually no difference

— Mate, we were talking about minimize the lines of code with experience

— Oh yes then its better

— It doesn't matter, when you're working with 100s of people, you need to make sure your code is as readable as possible

Message permanent page

— They're both readable

— Infact the 2nd one is more readable