F_G

许多问题需要说清楚就可以&&走永远比跑来的重要

导航

2015年8月16日 #

[Leetcode] 旋转问题(旋转数组的查找,旋转list,旋转矩阵)

摘要: [1] Search in Rotated Sorted Array在二分查找问题当中,对于边界的查找,尤其是==的情况应该放到左边界上,因为对于mid的求取又是就是left,所以这是检测应该是true,所以下面的nums[mid]>=nums[left],如果改为nums[mid]>nums[le... 阅读全文

posted @ 2015-08-16 11:29 F_G 阅读(481) 评论(0) 推荐(0) 编辑

[Leetcode] 回文问题

摘要: [1] Palindrome Number[2] Valid Palindrome[3] Palindrome Partitioning[4] Palindrome Partitioning II[5] Shortest Palindrome[6] Palindrome Linked List[7]... 阅读全文

posted @ 2015-08-16 11:08 F_G 阅读(326) 评论(0) 推荐(0) 编辑

[Leetcode] Word Ladder I,II

摘要: 一、问题描述:Given:start="hit"end="cog"dict=["hot","dot","dog","lot","log"]As one shortest transformation is"hit" -> "hot" -> "dot" -> "dog" -> "cog",return... 阅读全文

posted @ 2015-08-16 11:00 F_G 阅读(238) 评论(0) 推荐(0) 编辑