- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 Spiral Matrix 螺旋数组
题目要求如下: Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example, Given the following matrix: [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7,
2016-07-16 11:52:09 237
原创 二分搜索 34. Search for a Range
题目要求: Given a sorted array of integers, find the starting and ending position of a given target value. Your algorithm's runtime complexity must be in the order of O(log n). If the target is
2016-07-14 16:57:24 334
原创 Reverse Vowels of a String 交换元音字母
题目要求: Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Given s = "hello", return "holle". Example 2: Given s = "leetcode", return "leotced
2016-07-12 11:29:44 354
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人