DEV Community

Discussion on: How To Master A Programming Language Really Fast 🔥

Collapse
 
dougaws profile image
Doug

I would first create the algorithm in pseudo-code:

  1. Give list of binary values.
  2. For each value: a. Is it zero? i. If so, ...

And so on. Also, to make understanding each language, I would name all of the variables similarly. So res in Java is max in JavaScript and len in Rust makes it harder to follow the logic.