xinyu04

导航

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

2022年8月31日 #

MathProblem 72 A jar and an amoeba problem

摘要: A jar begins with one amoeba. Every minute, every amoeba turns into 0, 1, 2, or 3 amoebae with probability 25% for each case ( dies, does nothing, spl 阅读全文

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

MathProblem 71 Nine pearls and a scale problem

摘要: You have nine pearls, eight are real and one is fake. All the real ones weigh the same and the fake weighs less than the real ones. Using a balance sc 阅读全文

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

[Google] LeetCode 489 Robot Room Cleaner

摘要: You are controlling a robot that is located somewhere in a room. The room is modeled as an m x n binary grid where 0 represents a wall and 1 represent 阅读全文

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

MathProblem 68 Four weights and a scale problem

摘要: Using a balance scale and four weights you must be able to balance any integer load from $1$ to $40$. How much should each of the four weights weigh? 阅读全文

posted @ 2022-08-31 04:52 Blackzxy 阅读(15) 评论(0) 推荐(0) 编辑

2022年8月30日 #

[Google] LeetCode 715 Range Module 线段树

摘要: A Range Module is a module that tracks ranges of numbers. Design a data structure to track the ranges represented as half-open intervals and query abo 阅读全文

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

2022年8月29日 #

MathProblem 61 Coin toss problem #3

摘要: Suppose you have a coin in which the probability of flipping a heads is $p$, where $p\ge0.5$ . What is the expected number of flips it will take for t 阅读全文

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

MathProblem 59 Two primes problem

摘要: Show that any prime number other than 2 can be expressed as the difference of two squares, where each square is an integer squared. Solution 任何质数都是奇数。 阅读全文

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

Mathproblem 58 Chessboard problem #2

摘要: How many subsquares can you form on chessboard with $n*n$ unit squares? Subsquares must be an integer squared. Solution 很明显的方法就是枚举正方形的边长,然后统计该边长的正方形的个 阅读全文

posted @ 2022-08-29 16:43 Blackzxy 阅读(12) 评论(0) 推荐(0) 编辑

[Google] LeetCode 539 Minimum Time Difference

摘要: Given a list of 24-hour clock time points in "HH:MM" format, return the minimum minutes difference between any two time-points in the list. Solution 这 阅读全文

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

[Google] LeetCode 2128 Remove All Ones With Row and Column Flips

摘要: You are given an m x n binary matrix grid. In one operation, you can choose any row or column and flip each value in that row or column (i.e., changin 阅读全文

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

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