LogFAQs > #960982160

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/16/21 9:59:20 PM
#33:


Day 14

Two questions today. One kinda interesting.

First is https://leetcode.com/problems/valid-square/. This is bringing me back to elemntary/highschool days. I was trying to remember how to determine if 3 coordinates forms a 90 degree angle. But I realized that, if I get the distance from one point to every other point, I'd get 6 distances. 4 distances would have the same length, i.e. the perimeter, and two distances will have the same length, i.e. the diagonal across the square. So I just need to validate that, grabing the distances using the pythagorean theorem that i still remember.

Second was https://leetcode.com/problems/maximum-binary-tree-ii/. I was wondering why there were more dislikes than likes. After completing it and checking the comments, people just can't read. Append means place the number at the end of the array.

... Copied to Clipboard!
Topic List
Page List: 1