LogFAQs > #961114427

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/21/21 7:53:07 PM
#38:


Day 19

Two questions today.

Question was a leetcode easy https://leetcode.com/problems/power-of-two/, and it reminded me how logs worked in high school, because I completely forgot. The "programming method" is to create a loop that continuously divides the number by 2, and check if there are any decimal places. The short way is the use log2, but Java doesn't support that. So I had to look up how to do log2 in Java, and if you remember your math, it's the same as log10(n) / log10(2). I'll keep that in mind.

Question 2 was a struggle. https://leetcode.com/problems/minimized-maximum-of-products-distributed-to-any-store/. I am extremely close to answering it, but I'm forcing myself to stop and to look up the answer. I cannot waste time. Frustrating, but fuck my ego. I need to do the right thing.
... Copied to Clipboard!
Topic List
Page List: 1