摘要:
Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix. Note that it is th 阅读全文
posted @ 2018-10-18 11:23
bernieloveslife
阅读(90)
评论(0)
推荐(0)
摘要:
Given a string, find the first non repeating character in it and return it's index. If it doesn't exist, return 1. Examples: s = "leetcode" return 0. 阅读全文
posted @ 2018-10-18 11:23
bernieloveslife
阅读(96)
评论(0)
推荐(0)
摘要:
Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Note: You may assume k is always valid, 1 ≤ k ≤ BST's 阅读全文
posted @ 2018-10-18 11:23
bernieloveslife
阅读(74)
评论(0)
推荐(0)
摘要:
Shuffle a set of numbers without duplicates. Example: // Init an array with set 1, 2, and 3. int[] nums = {1,2,3}; Solution solution = new Solution(nu 阅读全文
posted @ 2018-10-18 11:23
bernieloveslife
阅读(163)
评论(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-10-18 11:23
bernieloveslife
阅读(115)
评论(0)
推荐(0)

浙公网安备 33010602011771号