LogFAQs > #961086686

LurkerFAQs, Active DB, DB1, DB2, DB3, DB4, DB5, DB6, DB7, DB8, DB9, Database 10 ( 02.17.2022-12-01-2022 ), DB11, DB12, Clear
Topic List
Page List: 1
TopicAnother 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