xinyu04

导航

2022年8月21日 #

[Google] LeetCode 2013 Detect Squares

摘要: You are given a stream of points on the X-Y plane. Design an algorithm that: Adds new points from the stream into a data structure. Duplicate points a 阅读全文

posted @ 2022-08-21 17:01 Blackzxy 阅读(74) 评论(0) 推荐(0) 编辑

[Google] LeetCode 2178 Maximum Split of Positive Even Integers 贪心

摘要: You are given an integer finalSum. Split it into a sum of a maximum number of unique positive even integers. For example, given finalSum = 12, the fol 阅读全文

posted @ 2022-08-21 15:43 Blackzxy 阅读(35) 评论(0) 推荐(0) 编辑

MathProblem 39 Zeros and ones problem

摘要: What is the smallest integer greater than 0 that can be written entirely with zeros and ones and is evenly divisible by 225? Solution 将其分解: $$ 225 = 5 阅读全文

posted @ 2022-08-21 06:25 Blackzxy 阅读(14) 评论(0) 推荐(0) 编辑

[Google] LeetCode 1048 Longest String Chain

摘要: You are given an array of words where each word consists of lowercase English letters. $word_A$ is a predecessor of $word_B$ if and only if we can ins 阅读全文

posted @ 2022-08-21 03:21 Blackzxy 阅读(9) 评论(0) 推荐(0) 编辑