Search in Rotated Sorted Array II
Total Accepted: 18488 Total
Submissions: 59914My Submissions
Follow up for "Search in Rotated Sorted Array":
What if duplicates are allowed?
Would this...
分类:
其他好文 时间:
2014-10-10 17:26:24
阅读次数:
122
Every iPhone developer that has integrated a network connection based application has had to follow the Apple HID (Human Interface Design) rules. This means, that in order to get the Apple reviewers t...
分类:
移动开发 时间:
2014-10-09 15:54:48
阅读次数:
205
title
描述
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 should return length = 5, and A is no...
分类:
其他好文 时间:
2014-10-09 03:14:48
阅读次数:
163
Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?使用快慢指针,如果有循环两指针必定能相遇: 1 p...
分类:
编程语言 时间:
2014-10-08 04:32:34
阅读次数:
298
题目: 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? 分析: 二维数...
分类:
其他好文 时间:
2014-10-07 16:44:13
阅读次数:
311
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...
分类:
其他好文 时间:
2014-10-07 12:03:03
阅读次数:
231
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
这个题目用快慢指针来做,重点在于代码怎么实现的简洁方便理解。
这里用快指针来判断链表是不是有NULL,没有NULL那再继续走,看是否能与慢指针遇上...
分类:
其他好文 时间:
2014-10-01 10:16:10
阅读次数:
309
已经第六章了,也差不多接近尾声,如果你从第一章耐心follow到本章结束,那你便能掌握canvas的大部分知识点(当然如果要精通,还是得多靠练习,做一些小案例)。也希望大家在学习本系列的时候能顺手给文章点个“赞”,算是对我的一种支持吧。今天我们要学习的是canvas的变形转换方法。缩放方法scale...
分类:
Web程序 时间:
2014-09-30 21:38:50
阅读次数:
381
Populating Next Right Pointers in Each Node II
Total Accepted: 18934 Total
Submissions: 62031My Submissions
Follow up for problem "Populating Next Right Pointers in Each Node".
What if t...
分类:
其他好文 时间:
2014-09-29 23:45:01
阅读次数:
218
【题目】Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?【题意】 推断一个单向链表是否有环【思路】 维护两个指针p1和p2,p1.....
分类:
其他好文 时间:
2014-09-28 21:16:55
阅读次数:
195