xinyu04

导航

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 30 下一页

2022年9月4日 #

[Google] LeetCode 2135 Count Words Obtained After Adding a Letter

摘要: You are given two 0-indexed arrays of strings startWords and targetWords. Each string consists of lowercase English letters only. For each string in t 阅读全文

posted @ 2022-09-04 01:11 Blackzxy 阅读(13) 评论(0) 推荐(0) 编辑

2022年9月3日 #

MathProblem 80 128 pennies and a blindfold problem

摘要: You are blindfolded before a table. On the table are a very large number of pennies. You are told 128 of the pennies are heads up and the rest are tai 阅读全文

posted @ 2022-09-03 05:23 Blackzxy 阅读(13) 评论(0) 推荐(0) 编辑

MathProblem 79 Three humans, three monkeys, and a boat problem

摘要: One one side of a river are three humans, one big monkey, two small monkeys, and one boat. Each of the humans and the big monkey are strong enough to 阅读全文

posted @ 2022-09-03 04:28 Blackzxy 阅读(27) 评论(0) 推荐(0) 编辑

[Google] LeetCode 562 Longest Line of Consecutive One in Matrix

摘要: Given an m x n binary matrix mat, return the length of the longest line of consecutive one in the matrix. The line could be horizontal, vertical, diag 阅读全文

posted @ 2022-09-03 02:34 Blackzxy 阅读(4) 评论(0) 推荐(0) 编辑

2022年9月2日 #

[Google] LeetCode 778 Swim in Rising Water 优先队列

摘要: You are given an n x n integer matrix grid where each value grid[i][j] represents the elevation at that point (i, j). The rain starts to fall. At time 阅读全文

posted @ 2022-09-02 22:35 Blackzxy 阅读(54) 评论(0) 推荐(0) 编辑

[Google] LeetCode 528 Random Pick with Weight

摘要: You are given a 0-indexed array of positive integers w where w[i] describes the weight of the ith index. You need to implement the function pickIndex( 阅读全文

posted @ 2022-09-02 17:43 Blackzxy 阅读(17) 评论(0) 推荐(0) 编辑

2022年9月1日 #

[Google] LeetCode 1101 The Earliest Moment When Everyone Become Friends 并查集

摘要: There are n people in a social group labeled from 0 to n - 1. You are given an array logs where logs[i] = [timestampi, xi, yi] indicates that xi and y 阅读全文

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

[Google] LeetCode 150 Evaluate Reverse Polish Notation

摘要: Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, and /. Each operand may be an integer or anoth 阅读全文

posted @ 2022-09-01 16:10 Blackzxy 阅读(9) 评论(0) 推荐(0) 编辑

[Google] LeetCode 552 Student Attendance Record II

摘要: An attendance record for a student can be represented as a string where each character signifies whether the student was absent, late, or present on t 阅读全文

posted @ 2022-09-01 05:07 Blackzxy 阅读(11) 评论(0) 推荐(0) 编辑

2022年8月31日 #

MathProblem 76 Two bags and marble problem

摘要: You choose one of two identical looking bags at random. One bag has three black marbles and one white marble. The other has three white marbles and on 阅读全文

posted @ 2022-08-31 21:32 Blackzxy 阅读(10) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 30 下一页