码迷,mamicode.com
首页 >  
搜索关键字:follow    ( 4585个结果
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?分析:用map记录是否出现过。用时:60ms 1 /** 2 * Definiti....
分类:其他好文   时间:2015-05-20 22:07:14    阅读次数:145
[LeetCode-JAVA] Remove Duplicates from Sorted Array II
题目:Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted arraynums=[1,1,1,2,2,3],Your function should...
分类:编程语言   时间:2015-05-17 21:40:55    阅读次数:122
【Populating Next Right Pointers in Each Node II】cpp
题目:Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution s...
分类:其他好文   时间:2015-05-15 13:21:07    阅读次数:113
Set Matrix Zeroes
Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you use extra space?A s...
分类:其他好文   时间:2015-05-14 23:19:26    阅读次数:148
Java for LeetCode 048 Rotate Image
You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?解题思路:找规律即可,JAVA...
分类:编程语言   时间:2015-05-14 22:00:26    阅读次数:106
Rotate Image
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?分析:先沿对角线进行对折,然后沿水平中...
分类:其他好文   时间:2015-05-14 00:40:00    阅读次数:164
[leetcode] Rotate Image
Rotate ImageYou are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?分析:rota...
分类:其他好文   时间:2015-05-11 14:41:11    阅读次数:121
leetcode--Linked List Cycle &Linked List Cycle II
Problem: Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? https://oj.leetcode.com/problems/linked-list-cycle/ Problem II: ...
分类:其他好文   时间:2015-05-10 15:44:57    阅读次数:121
编译原理-First集合和Follow集合的求法
First集合的求法: First集合最终是对产生式右部的字符串而言的,但其关键是求出非终结符的First集合,由于终结符的First集合就是它自己,所以求出非终结符的First集合后,就可很直观地得到每个字符串的First集合。1. 直接收取:对形如U-a…的产生式(其中a是终结符),把a收入到F...
分类:其他好文   时间:2015-05-09 16:21:38    阅读次数:116
48-Rotate Image
【题目】You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?【analyze】1.先对角线...
分类:其他好文   时间:2015-05-06 17:06:14    阅读次数:147
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!