- 博客(5)
- 收藏
- 关注
原创 【leetcode】389. Find the Difference【E】
Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at a random position. Find the letter that was
2016-08-31 09:56:33 586
原创 【leetcode】384. Shuffle an Array【M】
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(nums); // Shuffle the array [1,2,3] and return
2016-08-28 18:29:17 660
原创 【leetcode】387. First Unique Character in a String【E】
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. s = "loveleetcode", return 2. Note:
2016-08-23 12:18:25 369
原创 383. Ransom Note【E】
Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the ransom note can be constru
2016-08-19 23:48:51 525
原创 【leetcode】378. Kth Smallest Element in a Sorted Matrix【M】【88ms】
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 the kth smallest element in the sorted order, not t
2016-08-01 21:46:14 1706
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人