Java Vs Python for leetcode interview

Common wisdom is that because of its terse nature python is better for interview. And there is good GitHub repo of all python tricks for leetcode. But is there something similar for Java. Java also has lambdas and streams and may be some other features that make code as terse as python. Correct me if I am wrong . Are there any such resources. I think Java helps for concurrency interviews also as python doesnt have true multithreading. I wonder if it's possible to write terse code in Java just like in Python. FYI Python Repo : GitHub.com/peterlamar/python-cp-cheatsheet Looking for Java resources like that.

Instacart ylang Jul 24, 2022

Poll

Amazon only-vibes Jul 24, 2022

Python forever. Nobody will ask you to write muti-threaded code in an hour long interview.

ByteDance ‎SirPunch Jul 24, 2022

What's the Python repo you mentioned?

Cisco udoQ26 OP Jul 25, 2022

One moment

Cisco udoQ26 OP Jul 25, 2022

Pasted it now in the question section itself . You are in TikTok already .I doubt if these can help you . You are already a boss .

Trilogy pokyy Jul 25, 2022

Python but if you’re way more comfortable with Java, use it instead

Zoom 🥜hunter Jul 25, 2022

Use whatever you want bro.

Cisco udoQ26 OP Jul 25, 2022

Anything for Java ??

Roku hello____ Jul 25, 2022

From my experience, interviews had specifically asked me NOT to use Java lambda and streams as well as python shortcuts stating they want simple code and not using inbuilt methods I would focus on any language without using built in operations

GrubHub qep Jul 25, 2022

For what it's worth I did interviews in Java and had no issue coding things in time. It's not as verbose as it used to be, and if you are much more familiar with it then it makes sense to use it. If I was starting from nothing and just picking a language then yea I'd go with python though.

Cisco udoQ26 OP Jul 25, 2022

What features made it terse ?

Meta iiCO16 Jul 25, 2022

use C