xinyu04

导航

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 30 下一页

2022年8月22日 #

[Google] LeetCode 729 My Calendar I

摘要: You are implementing a program to use as your calendar. We can add a new event if adding the event will not cause a double booking. A double booking h 阅读全文

posted @ 2022-08-22 03:28 Blackzxy 阅读(15) 评论(0) 推荐(0) 编辑

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) 编辑

2022年8月20日 #

[Google] LeetCode 2115 Find All Possible Recipes from Given Supplies

摘要: You have information about n different recipes. You are given a string array recipes and a 2D string array ingredients. The $i$-th recipe has the name 阅读全文

posted @ 2022-08-20 23:43 Blackzxy 阅读(38) 评论(0) 推荐(0) 编辑

[Google] LeetCode 2034 Stock Price Fluctuation

摘要: You are given a stream of records about a particular stock. Each record contains a timestamp and the corresponding price of the stock at that timestam 阅读全文

posted @ 2022-08-20 22:17 Blackzxy 阅读(26) 评论(0) 推荐(0) 编辑

[Google] LeetCode 366 Find Leaves of Binary Tree

摘要: Given the root of a binary tree, collect a tree's nodes as if you were doing this: Collect all the leaf nodes. Remove all the leaf nodes. Repeat until 阅读全文

posted @ 2022-08-20 04:23 Blackzxy 阅读(12) 评论(0) 推荐(0) 编辑

[Google] LeetCode 2096 Step-By-Step Directions From a Binary Tree Node to Another

摘要: You are given the root of a binary tree with n nodes. Each node is uniquely assigned a value from 1 to n. You are also given an integer startValue rep 阅读全文

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

2022年8月19日 #

[Oracle] LeetCode 848. Shifting Letters

摘要: You are given a string s of lowercase English letters and an integer array shifts of the same length. Call the shift() of a letter, the next letter in 阅读全文

posted @ 2022-08-19 15:47 Blackzxy 阅读(11) 评论(0) 推荐(0) 编辑

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 30 下一页