Which is better to use when preparing for interviews at Silicon Valley tech companies, HackerRank or Leetcode?
Leetcode. Hackerrank wastes your time with unnecessary back stories. Like some kid wants to buy candles for their bday but want it in a specific way and you are now a wizard who has to help them for God knows why. At the end its an array problem apparently and that kid never paid attention in their data structures class and hence needs your help. Google code jam is similar except they are way more excited about pancakes for some reason. At least the problems are hard. And then there is facebook hacker cup. No one really knows when they organize this since there is no website, all they have is a fb page. And all comments are people asking others to hack their friends' profile without realizing that facebook hacker cup has nothing to do with stereotypical hacking that these non-technical commenters know about.
Both. Leet is faster but makes you lazy about testing. Hacker forces you to do some stuff manually so it is more like an actual interview. 90/10 leet/hacker is my personal ratio.
Use Leetcode to build your toolkit. Use hacker rank/top coder/project Euler as ways to apply that tool kit. Does waste a lot of time with problem setup, not ideal when you’re still learning.
Hackerrank has some easy stuff to get you started
Fuck LC, kill HackerRank, marry reasonable interview processes
Found leetcode to be useful for my preparation. Never used HackerRank as much