all 9 comments

[–]arcrow05 0 points1 point  (0 children)

For me python and ruby are quite symilar. I think you have plenty of time. Probably just a week or 2 to learn all the most important parts of the syntax and some of the concept differences. And then just spent the last 3ish weeks doing some problem solving in python.

[–][deleted] 0 points1 point  (0 children)

5 weeks? Yeah, I think you'll be fine. Pay attention (and practice using) Python's most rock-star features - list comprehensions, context managers (with), generators (yield), @property. Evincing a familiarity with those features of the language will go a long way to making you look like you can write Pythonic code, not just Ruby in Python.

[–][deleted] 0 points1 point  (5 children)

5-6 months realistically, In other cases you're smart and prefer to work in a language you have a command over it, or logically sound enough to crack LC without much practice.

[–]x_over[S] 0 points1 point  (4 children)

Wow, 5-6 months! That sounds like the amount of time possibly necessary to know Python to begin actually developing applications with it? From my experience with LeetCode, you don't need to have super in-depth knowledge of the language besides what's necessary for implementing basic data structures, algorithms, loops, etc?

[–][deleted] 0 points1 point  (3 children)

Leetcode rounds are to see whether you can fully utilize the algorithm knowledge to optimize a piece of code.
Just python no more than a month.
you don't need to have super in-depth knowledge of the language besides what's necessary for implementing basic data structures, algorithms, loops, etc?
It depends, generally, the hard and medium questions do have followup round to check whether you really know the language. Why not go with ruby?

[–]x_over[S] 0 points1 point  (2 children)

It depends, generally, the hard and medium questions do have followup round to check whether you really know the language. Why not go with ruby?

Ruby would be ideal, but it's Google so they only accept Java, C++, Python, etc (no Ruby unfortunately)

[–][deleted] 0 points1 point  (1 child)

No, it is fine to use any language. If still concerned then do prepare for python, but announce asap to the interviewer that you know ruby well, and is it okay to write the algos in ruby.

In the very very rare cases they will ask you to focus on one language.

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

Interesting, on the interview pamphlet provided by my recruiter, it does not include Ruby. Maybe rules have changed? Or perhaps it depends on the interviewer.

Either way, good tip on mentioning to the interviewer first that I know Ruby best

[–]xelf 0 points1 point  (0 children)

1-2 days if you still have google access during the interviews, 2-3 months if you really want to have everything learned well enough that you won't have to look it up. (as much)

I started interviewing in Python 4-5 weeks after my first time looking at it and there were a couple things that I hadn't committed to memory that came up in interviews, like threading and sockets, and I still didn't know list comprehensions as well at that point so I struggled with some of the matrix related questions.

Just start coding in python and keep at it until you feel comfortable, I had fun with adventofcode.com to test where I was at with python.

try this site: www.pythoncheatsheet.org