interview-preparation

JS

Run JS files: node --expose-gc ./SpotStoreImpl.js

Transpile TS -> JS files: tsc --lib es2015,dom ./SpotStoreImpl.ts

Run TS 1: creates JS file: tsc greet.ts | node greet.js

2: ts-node -O '{"lib": [ "es2015", "dom" ]}' ./SpotStoreImpl.ts

Started course to lear algo: https://stepik.org/course/217/info

https://stepik.org/lesson/9173/step/3 JavaScript (Node.js v10.13.0) Run command:

node --max-old-space-size={memory limit}
// Examples:
node --max-old-space-size=3 index.js #increase to 3Mb - min to run programm
node --max-old-space-size=64 index.js #increase to 64Mb
node --max-old-space-size=1024 index.js #increase to 1gb

Run command example:

node --expose-gc --max-old-space-size=64 index.js

How to prepare to tech interview

  • Solve more Medium problems on LeetCode: easy(20%) + medium(60%) + hard(20%)
  • There will be no multiple submits during the interview!
    • Submit failure in practice might be equal to rejection in the actual interview.
    • Treat your submitted solution as the final solution in the interview!
    • Try to find your own corner test cases to check before submitting. Recheck you solution and think that you can Submit ONLY ONCE!
  • Interview lasts between 45 min to 1 hour! Try to reduce solving time for medium problem from 45 min to 30 min at least.
  • Some LeetCode problems can be solved more optimal if input data would be sorted!
  • If you want to make your life easier you should break your solution to helpers functions if possible. Advantages of HELPER FUNCTION:
    • You don't look like a newbie.
    • Makes debugging easy.
    • Pass interview with incomplete code.
  • Pay attention to your interviewer! Use your interviewer wisely:
    • Clearly explain your solution
    • Pay attention to clarifying question
  • Concentrate on your Circle of Control and keep improving yourself:
    • You prepared Data Structure Algorithms?
    • You practiced enough questions?
    • If you will be on time
  • PRACTICE A LOT!!!
  • https://www.youtube.com/watch?v=NW6CPOmlV2M

How to solve LeetCode problems

How to prepare Data Structure Algorithms