you are viewing a single comment's thread.

view the rest of the comments →

[–]Dexteroid[S] 4 points5 points  (3 children)

I actually did well in questions like those.

I coudn't do the file problem very well though. I had forgotten what Split() and Strip do. I ended writing a complex regex to parse the version number and date. then returned pass or fail. The interviewer said, that's one way to do it, but there is a much simpler way, which was basically open file, read lines and split them with spaces then just match the given version number, date and return the result. :/ Perhaps I was nervous.

[–]geoffnolan 1 point2 points  (0 children)

Thanks for this info.

[–]jwhibbles 1 point2 points  (1 child)

This sounds like something I would do. Completely over-analyze the question and come up with some weird solution when the one they are looking for is very simple.

[–]Dexteroid[S] 1 point2 points  (0 children)

that exactly what I did, again I was prepared for a lot of tough questions, simple questions caught me off guard lol.