Topic List | Page List: 1 |
---|---|
Topic | Another day, another rejection from a software developer position. Time to grind |
BIueJay 12/20/21 8:12:19 PM #37: | Day 18 Did 3 questions today, because the first two they gave me were Leetcode easy. First is https://leetcode.com/problems/check-array-formation-through-concatenation/. I misread this question and thought were were asking for a harder solution. I made use of a HashMap to store the first item of a large piece, and iterated through the list to see if the array contained the remainder. Second is https://leetcode.com/problems/minimum-absolute-difference/. Sorting it first makes it trivial. Third is https://leetcode.com/problems/minimum-increment-to-make-array-unique/. It was kinda similar to another question I answered. Once again, sorting it makes it much easier to workout. When in doubt, sort it out. Unless of course the questions wants you to keep the array intact. ... Copied to Clipboard! |
Topic List | Page List: 1 |