上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 98 下一页
摘要: On an N x N grid, each square grid[i][j] represents the elevation at that point (i,j). Now rain starts to fall. At time t, the depth of the water ever 阅读全文
posted @ 2018-11-09 16:59 Veritas_des_Liberty 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Given two integer arrays A and B, return the maximum length of an subarray that appears in both arrays. Example 1: Note: Approach #1: Dynamic programm 阅读全文
posted @ 2018-11-08 21:08 Veritas_des_Liberty 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Given an integer array, return the k-th smallest distance among all the pairs. The distance of a pair (A, B) is defined as the absolute difference bet 阅读全文
posted @ 2018-11-08 20:48 Veritas_des_Liberty 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Nearly every one have used the Multiplication Table. But could you find out the k-th smallest number quickly from the multiplication table? Given the 阅读全文
posted @ 2018-11-08 17:34 Veritas_des_Liberty 阅读(290) 评论(0) 推荐(0) 编辑
摘要: Given a sorted array, two integers k and x, find the k closest elements to x in the array. The result should also be sorted in ascending order. If the 阅读全文
posted @ 2018-11-08 16:34 Veritas_des_Liberty 阅读(244) 评论(0) 推荐(0) 编辑
摘要: For an integer n, we call k>=2 a good base of n, if all digits of n base k are 1. Now given a string representing n, you should return the smallest go 阅读全文
posted @ 2018-11-07 21:33 Veritas_des_Liberty 阅读(326) 评论(0) 推荐(0) 编辑
摘要: Winter is coming! Your first job during the contest is to design a standard heater with fixed warm radius to warm all the houses. Now, you are given p 阅读全文
posted @ 2018-11-07 20:39 Veritas_des_Liberty 阅读(276) 评论(0) 推荐(0) 编辑
摘要: Given four lists A, B, C, D of integer values, compute how many tuples (i, j, k, l) there are such that A[i] + B[j] + C[k] + D[l] is zero. To make pro 阅读全文
posted @ 2018-11-07 19:29 Veritas_des_Liberty 阅读(221) 评论(0) 推荐(0) 编辑
摘要: You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the total number 阅读全文
posted @ 2018-11-06 21:55 Veritas_des_Liberty 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Given a set of intervals, for each of the interval i, check if there exists an interval j whose start point is bigger than or equal to the end point o 阅读全文
posted @ 2018-11-06 21:38 Veritas_des_Liberty 阅读(206) 评论(0) 推荐(0) 编辑
上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 98 下一页