码迷,mamicode.com
首页 >  
搜索关键字:follow    ( 4585个结果
Rotate Image -- leetcode
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? 根据一个点坐标计算出其他三个点的位置。 可以依据,每个点到外边框的对应距离相等,推算坐标。 ...
分类:其他好文   时间:2015-01-28 14:49:45    阅读次数:131
Clockwise/Spiral Rule
【Clockwise/Spiral Rule】 There is a technique known as the ``Clockwise/Spiral Rule''. (顺时针螺旋法则). There are three simple steps to follow:Starting with.....
分类:其他好文   时间:2015-01-27 21:32:04    阅读次数:189
Follow me---快速入门shell脚本编写(二)
上次在写shell的时候发现vi和vim不一样:vim是vi的升级版本,它不仅兼容vi的所有指令,而且还有一些新的特性在里面。vim要比vi好用许多。 这次接着上次的内容,基础知识,继续学习,本文作者也在自学中,纰漏错误在所难免,若有人发现问题请指出谢谢! 布尔运算符 先大致熟悉一下布尔相关的三个运算符 ! 非运算 -o 或运算(or) -a 与运算(and) 接着写程序熟悉一下...
分类:系统相关   时间:2015-01-26 21:07:45    阅读次数:235
leetcode 【 Unique Paths II 】 python 实现
题目:Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty spac...
分类:编程语言   时间:2015-01-26 16:57:37    阅读次数:161
[C++]LeetCode: 124 Populating Next Right Pointers in Each Node II(链接二叉树)
题目: 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 still work? Note: You may only use co...
分类:编程语言   时间:2015-01-26 13:41:55    阅读次数:253
leetcode 【 Set Matrix Zeroes 】python 实现
题目: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?...
分类:编程语言   时间:2015-01-24 21:12:54    阅读次数:192
Follow me---快速入门shell脚本编写
努力让自己工作变得高效,会写脚本,会用脚本,往往事半功倍。所以,今天就抽出一些时间学习学习Shell脚本。 shell有两种执行命令的方式: 交互式(Interactive):解释执行用户的命令,用户输入一条命令,Shell就解释执行一条。 批处理(Batch):用户事先写一个Shell脚本(Script),其中有很多条命令,让Shell一次把这些命令执行完,而不必一条一条地敲命令。 我们...
分类:系统相关   时间:2015-01-24 18:48:48    阅读次数:230
Linked List Cycle II
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?Has...
分类:其他好文   时间:2015-01-24 15:46:11    阅读次数:118
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.可以用hash表记录链表中每个节点的地址,然后遍历发现重复,即有环,否则到...
分类:其他好文   时间:2015-01-24 15:43:21    阅读次数:166
Unique Paths II
https://oj.leetcode.com/problems/unique-paths-ii/Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique p...
分类:其他好文   时间:2015-01-23 14:39:35    阅读次数:258
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!