IncredibleThings

导航

2016年10月5日 #

LeetCode-Search in Rotated Sorted Array

摘要: Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). You are given a target value to search. If found in the array return its... 阅读全文

posted @ 2016-10-05 05:10 IncredibleThings 阅读(126) 评论(0) 推荐(0) 编辑

LeetCode-Remove Duplicates from Sorted Array II

摘要: 感觉这道题的oa有点问题。。。先这样吧 要in place 改变原数组: 阅读全文

posted @ 2016-10-05 03:33 IncredibleThings 阅读(91) 评论(0) 推荐(0) 编辑

LeetCode-Word Search

摘要: Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjac 阅读全文

posted @ 2016-10-05 00:07 IncredibleThings 阅读(97) 评论(0) 推荐(0) 编辑