LogFAQs > #960861796

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/12/21 8:19:42 PM
#26:


Day 10

Weekends are required, but less pressure to do 2 plus system design. I did https://leetcode.com/problems/can-make-arithmetic-progression-from-sequence/ was was just sort and get the difference.

Question two is https://leetcode.com/problems/largest-submatrix-with-rearrangements/. Currently struggling with this. Looked at the hint and it says to sort, which is what I suspected, but I think the running time would still be long. I assume it's referring to sort each row in decreasing order, so that you have all the 1s close together. But then you'll have to puck and choose which of the 1s need to be arranged to get the largest submatrix. I'm thinking you would have to sort them again based on the 1s above and below the row. Taking a break from this for now, and will tackle it tomorrow.
... Copied to Clipboard!
Topic List
Page List: 1