Skip to content

Instantly share code, notes, and snippets.

@dstavis
Last active November 4, 2022 04:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dstavis/267593acd8c225e2804ba1d7c8194be4 to your computer and use it in GitHub Desktop.
Save dstavis/267593acd8c225e2804ba1d7c8194be4 to your computer and use it in GitHub Desktop.
Technical Challenge Reflections

Challenge 1

Millions of Numbers

  • What felt good about your process? I tried a new solution after my first one worked

  • What was difficult/where did you struggle? My new solution performed WORSE than the first one

  • What feedback did you receive? I learned how to use process.time() and process.timeEnd() to measure the time efficiency of my solutions

Challenge 2

What did I order?

  • What felt good about your process? Pseudocoding felt good

  • What was difficult/where did you struggle? Figuring out how to produce permutations algorithmically was confusing

  • What feedback did you receive? Try hard problems like this when your brain is well-rested. Brute-forcing it won't work

Challenge 3

Robot

  • What felt good about your process? I came up with alternative approaches that worked, by looking for patterns

  • What was difficult/where did you struggle? The algorithm worked fine, but the particulars of the javascript code I wrote had wrong assumptions that had to be debugged

  • What feedback did you receive? I should console.log at each step to check if my changes worked

Challenge 4

Next Palindrome

  • What felt good about your process? I checked each step with console logging, starting with my helper functions. It was really fun to write

  • What was difficult/where did you struggle? I kinda didn't at all! it was very short and satisfying I guess noticing that numbers in JS don't have a built-in reverse took a second to think about

  • What feedback did you receive? I used .join() wrong the first time, forgetting that if you omit the .join("") argument it adds a comma to the result. But I quickly found that error and fixed it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment