xinyu04

导航

上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 30 下一页

2022年8月16日 #

LeetCode 131 Palindrome Partitioning

摘要: Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. A palindro 阅读全文

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

LeetCode 169 Majority Element

摘要: Given an array nums of size n, return the majority element. The majority element is the element that appears more than ⌊n / 2⌋ times. You may assume t 阅读全文

posted @ 2022-08-16 02:07 Blackzxy 阅读(10) 评论(0) 推荐(0) 编辑

2022年8月15日 #

LeetCode 201 Bitwise AND of Numbers Range

摘要: Given two integers left and right that represent the range [left, right], return the bitwise AND of all numbers in this range, inclusive. Solution 暴露循 阅读全文

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

MathProblem 34 Drug test problem

摘要: 10% of the people in a certain population use an illegal drug. A drug test yields the correct result 90% of the time, whether the person uses drugs or 阅读全文

posted @ 2022-08-15 05:55 Blackzxy 阅读(12) 评论(0) 推荐(0) 编辑

Wall Street job interview

摘要: Let’s play a game of Russian roulette. You are tied to your chair. Here’s a gun, a revolver. Here’s the barrel of the gun, six chambers, all empty. No 阅读全文

posted @ 2022-08-15 05:18 Blackzxy 阅读(17) 评论(0) 推荐(0) 编辑

MathProblem 33 Russian roulette problem

摘要: Assuming both players take turns what is the probability the player who goes first will lose at Russian roulette using a gun with six chambers? Soluti 阅读全文

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

MathProblem 32 A fence, board, and a shadow problem

摘要: You have a $6$ foot fence and at $15$ foot board. The sun is shining directly overhead. You want to lean your board against the fence so that as large 阅读全文

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

MathProblem 31 Compound interest problem #1

摘要: What is the value of $1, invested for one year at 100% interest, compounded infinitely? Solution Generally, the value of $1 invested for $n$ years at 阅读全文

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

2022年8月14日 #

MathProblem 29 Four dogs and a square problem

摘要: Four dogs occupy the four corners of a square with side of length a. At the same time each dog starts walking at the same speed directly toward the do 阅读全文

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

MathProblem 28 Furniture factory problem

摘要: A factory that produces tables and chairs is equipped with 10 saws, 6 lathes, and 18 sanding machines. It takes a chair 10 minutes on a saw, 5 minutes 阅读全文

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

上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 30 下一页