Problem:Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the follow...
分类:
其他好文 时间:
2015-06-07 23:31:41
阅读次数:
123
Problem:Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the follow...
分类:
其他好文 时间:
2015-06-06 14:44:05
阅读次数:
88
题目:Follow up for "Remove Duplicates": What if duplicates are allowed at most twice?For example, Given sorted array A = [1,1,1,2,2,3],Your function sho...
分类:
其他好文 时间:
2015-06-06 06:48:59
阅读次数:
122
Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Follow up:Can you solve it without using extra space?解...
分类:
编程语言 时间:
2015-06-04 21:02:52
阅读次数:
151
Problems: Follow up for "Remove Duplicates":What if duplicates are allowed at most twice?For example,Given sorted array nums = [1,1,1,2,2,3],Your func...
分类:
其他好文 时间:
2015-06-04 11:30:48
阅读次数:
101
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
基本思路:
快慢两指针。
一个指针每次移动一步,另一个指针每次移动两步。如存在环,必有相遇的时候。
/**
* Definition for singly-li...
分类:
其他好文 时间:
2015-06-02 17:57:11
阅读次数:
89
For your Custom module follow following steps 1) you can create folder for placeholder images at media/mymodule/placeholder/placeholderImage.jpg2) re....
分类:
其他好文 时间:
2015-06-02 15:04:37
阅读次数:
196
Linked List Cycle II
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
Follow up:
Can you solve it without using extra space?
解题思路:
1、解法1,用se...
分类:
其他好文 时间:
2015-06-02 11:20:46
阅读次数:
100
Linked List Cycle
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
解题思路:
1、最基本的办法是用一个set来存储所有已经出现过的指针。若出现重复,则表示有环,若没有重复,则没有环...
分类:
其他好文 时间:
2015-06-02 00:29:05
阅读次数:
135
目前正在编写算法导论答案,欢迎大家follow me at mygithub
刚完成第9章,中位数和顺序统计学
正在编写第13章,红黑树
想要参与的朋友可以告诉我想要编写的章节,开个branch给你~~~~~~...
分类:
编程语言 时间:
2015-05-30 22:43:18
阅读次数:
328