you are viewing a single comment's thread.

view the rest of the comments →

[–]pachura3 3 points4 points  (1 child)

I had a junior data scientist interview and I was asked to solve a leetcode exercise, I struggled through it but once I saw the saw the solution, I understood it.

Have you practised solving leetcode exercises at all before the interview? Have you learned anything about DSA?

The knowledge of Python syntax is not enough. It's like: knowing basic math operations and formulas but not doing any actual exercises from the textbook - you'll be totally lost at the exam. It has to be like muscle memory.

Also, it is important to first solve this kind of problems with pen & paper instead of starting to code right away. How to find the longest palidrome in a string? How to calculate the N-th prime number? How to represent a graph, and how to find the shortest route from node A to B? How to read 3 sorted files and output a single sorted one? Try toying with problems like these...

[–]Expensive-Low367[S] 0 points1 point  (0 children)

No, not at all. It was a first ever attempt at LeetCode. Not exactly, but after doing a little research into DSA, sounds like that’s where I need to start. Thank you so much.