Leetcode strategy in javascript for frontend engineer interview
Oct 12, 2020
12 Comments
Hi,
I am preparing from Leetcode for Google frontend engineering position using Javascript language.
But Javascript doesn't have common implementations of useful stuff like Priority queues, Treemaps etc that's there in Java.
In Java the solution becomes very short as I don't need to reimplement the Treemap implementation, but with Javascript my solution size will increase considerably.
So how should I prepare?
1. Should I switch to Java in interview?
2. Can I write pseudocode in javascript instead of actually reimplementing stuff like Priority queues, Treemaps etc
TC: 20LPA
YOE: 4
#leetcode
#interview
#google
#frontend
comments
Can’t share the exact questions due to NDA but the algo/ds interviews were Leetcode-type questions, one of which was LC hard. In the frontend coding interviews, I was asked to implement some widget using HTML/CSS/javascript that involved DOM interactions and other frontend concepts, and also asked to implement a javascript API.
I would suggest study up on whatever you feel less confident about. If it is algo/ds, do more Leetcode. If it’s frontend development, practice implementing a small web app.