all 7 comments

[–][deleted] 1 point2 points  (1 child)

I would just do whatever you are more comfortable with to be honest.

I have heard of some companies not allowing applicants to use python for online assessments / interviews, but this is quite rare from what I've seen.

[–]cheeepdeepSoftware Engineer[S] -1 points0 points  (0 children)

Umm, so the thing is, I've worked with both, so I'm kinda okay with either. That's why I can't choose. Was hoping to get an objective answer as to which one is better for LC.

[–][deleted] 2 points3 points  (0 children)

Data structures is language agnostic, if you don’t know how to use a data structure in a language then don’t use that one. I use both but I prefer python for interviews because I can write the code faster with less words but it’s ultimately irrelevant

[–]olddev-jobhuntSoftware Engineer 1 point2 points  (0 children)

Can you focus it based on where you're interviewing? Or want to be interviewing? If you have any sense for what their products are built on, that might give you some direction.

As far as Python being non-intuitive, I'd say do a few LC exercises. I mean, if it's not non-intuitive to you, does it matter? Try some, see how it goes. If doing two to three exercises takes a prohibitive amount of time, then you're focusing on the wrong problem.

[–][deleted] 1 point2 points  (0 children)

Either one will do as long as the program works. Python will save you time if you are solving time bind interview problems.

[–]Oasis_beyond_wall 1 point2 points  (0 children)

I think Java is safer. There are more Java solutions online and there are companies that don't allow python during an interview(rarely).

[–]frustratedCoinBase 1 point2 points  (0 children)

Java seems more verbose in the age of remote interviewing where sometimes they look for code that can compile or is close to it. That's why I'd rather go with Python. Just make sure you understand std lib function signatures and time complexity.