Solving 1920: how to store 2 numbers in 1Check out the problem here. The first and obvious solution to this problem is even in the question: ans[i] = nums[nums[i]]. You loop over the nums array and in each iteration, you just put whatever nuAug 9 · 10 min readfortunatus-notes.hashnode.dev
Where Elegant Solutions Actually Come FromHere's a problem for you: add up every number from 1 to 100. Take a sec. How would you do it? Did you go for the obvious approach: start at 1, add 2, add 3, and keep going until 100? I understand. It'Aug 9 · 3 min readfortunatus-notes.hashnode.dev
Problem Solving like a ProgrammerThat's a snapshot of the introduction section of V. Anton Spraul's book, THINK LIKE A PROGRAMMER. I hope you read the image. After that, think about whether or not you still attack a problem by tryingApr 21 · 1 min readfortunatus-notes.hashnode.dev
An introduction to bash aliasesHey, there! I'm a noob. Now, I'm not winning any competitions for "bearer of the longest name" but my name is long enough that most people don't wanna have to call me the whole thing every time they'd12MApr 3 · 5 min readfortunatus-notes.hashnode.dev