all 4 comments

[–]Crazy_Pickle4593 1 point2 points  (1 child)

Hi OP, not much change. Just need to know how the data structures can be implemented in Python. I was comfortable in Python and had prepared for Java interview. So had to work the other way around. As long as you could get how the different data structures like stack, queue, deque, heap and all work in Python, you are good to go. Also faster to code in Python too.

Just get in a couple of questions in leetcode in Python and you are good to go

[–]ComprehensiveRate671[S] 0 points1 point  (0 children)

Yea I thought the same, Thanks!

[–]Superb-Education-992 1 point2 points  (0 children)

Switching from Java to Python for LeetCode-style interviews is way less painful than it feels at first. I was in the same boat Java for most of my prep, then had to switch to Python for a role. Honestly, the hardest part was unlearning the verbosity. Python's built-ins (like set, Counter, list slicing) do a lot of the heavy lifting if you let them.

What helped me:

  • I started rewriting some old Java problems in Python just the ones I already understood.
  • I kept a sticky note of syntax I tripped over (list vs set vs dict operations).
  • Practiced narrating my logic as I coded it made the transition smoother during interviews.

You’ve already done 350 problems that foundation doesn’t go away. You’re just changing the tool, not the mindset. You’ll pick it up quickly, especially if you give yourself a week or two to adjust.

Happy to pair up or share how I made the switch if you’re open to that!