上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 37 下一页
摘要: Primitive Primes : two integers are coprime if their GCD is 1. If a number A is not divisible by another prime number P, then A and P are guranteed to 阅读全文
posted @ 2020-03-05 23:19 Review->Improve 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Given a m x n grid. Each cell of the grid has a sign pointing to the next cell you should visit if you are currently in this cell. The sign of grid[i] 阅读全文
posted @ 2020-03-02 08:23 Review->Improve 阅读(983) 评论(0) 推荐(0) 编辑
摘要: An interesting problem using suffix sum. For each wrong tries that is correct until after index p[i], we add 1 to cnt[p[i]]. This represents that all 阅读全文
posted @ 2020-03-01 06:31 Review->Improve 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Problem Statement Link Clarification: The problem states that for each pair of points, we consider the minimum possible distance over any possible mom 阅读全文
posted @ 2020-02-28 23:07 Review->Improve 阅读(322) 评论(0) 推荐(0) 编辑
摘要: Given an array A of positive integers, call a (contiguous, not necessarily distinct) subarray of A good if the number of different integers in that su 阅读全文
posted @ 2020-02-04 11:41 Review->Improve 阅读(299) 评论(0) 推荐(0) 编辑
摘要: We are given an array A of N lowercase letter strings, all of the same length. Now, we may choose any set of deletion indices, and for each string, we 阅读全文
posted @ 2020-02-04 06:23 Review->Improve 阅读(314) 评论(0) 推荐(0) 编辑
摘要: You have some sticks with positive integer lengths. You can connect any two sticks of lengths X and Y into one stick by paying a cost of X + Y. You pe 阅读全文
posted @ 2020-01-24 05:55 Review->Improve 阅读(414) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) Yo 阅读全文
posted @ 2020-01-24 03:37 Review->Improve 阅读(810) 评论(0) 推荐(0) 编辑
摘要: Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two 阅读全文
posted @ 2019-12-09 08:40 Review->Improve 阅读(1337) 评论(2) 推荐(1) 编辑
摘要: Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two 阅读全文
posted @ 2019-12-09 08:23 Review->Improve 阅读(421) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 37 下一页