coding challenges
-
189: Rotate Array Given an array and an int k, rotate the array k number of steps to the right. The especial challenge of this problem is to find at least three solutions to it. Fortunately, we’re not required to do it in-place. 1. Rotate the array one step k times. This is the solution…
-
88. Merge Sorted Array. I think the humbling part is that a) I had to do a bunch of googling to find the methods I wanted to use, instead of just knowing them, and b) when I got done, I was really happy with my answer. I was using some inbuilt functions from Java, it…