摘要:
原题链接在这里:https://leetcode.com/problems/surrounded-regions/ 题目: Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded b 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/number-of-islands/ 题目: Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An isla 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/word-ladder/ 题目: Given two words (beginWord and endWord), and a dictionary's word list, find the length of short 阅读全文
摘要:
原题链接在这里:http://www.lintcode.com/en/problem/kth-largest-element/#在LeetCode上也有一道,采用了标准的quickSelect 方法,另外写了一篇帖子,代码更加模块化。采用的quickSelect方法,取出pivot, 比pivot ... 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/median-of-two-sorted-arrays/ 题目: here are two sorted arrays nums1 and nums2 of size m and n respectively. Find t 阅读全文