xinyu04

导航

2022年7月31日 #

LeetCode 986 Interval List Intersections 模拟

摘要: You are given two lists of closed intervals, firstList and secondList, where firstList[i] = [starti, endi] and secondList[j] = [startj, endj]. Each li 阅读全文

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

MathProblem 18 Sideways tank of gas problem

摘要: The gas tank of a truck is cylindrical in shape with a radius of r inches and a lengh of l inches, and tank lays on its side. With a measuring stick y 阅读全文

posted @ 2022-07-31 05:37 Blackzxy 阅读(16) 评论(0) 推荐(0) 编辑

MathProblem 16 Two coins problem

摘要: A box contains two coins. One coin is heads on both sides and the other is heads on one side and tails on the other. One coin is selected from the box 阅读全文

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

LeetCode 139 Word Break DP+map

摘要: Given a string s and a dictionary of strings wordDict, return true if s can be segmented into a space-separated sequence of one or more dictionary wor 阅读全文

posted @ 2022-07-31 03:38 Blackzxy 阅读(16) 评论(0) 推荐(0) 编辑

MathProblem 14 Four pints of beer problem

摘要: A bartender has a $3$ pint glass and a $5$ pint glass. A customer walks in and orders $4$ pints of beer. Without a measuring cup but with an unlimited 阅读全文

posted @ 2022-07-31 00:36 Blackzxy 阅读(15) 评论(0) 推荐(0) 编辑