码迷,mamicode.com
首页 >  
搜索关键字:note    ( 7358个结果
A Tour of Go Interfaces
An interface type is defined by a set of methods.A value of interface type can hold any value that implements those methods.Note:The code on the left ...
分类:其他好文   时间:2014-10-28 21:26:00    阅读次数:185
A Tour of Go Switch evaluation order
Switch cases evaluate cases from top to bottom, stopping when a case succeeds.(For example,switch i {case 0:case f():}does not callfifi==0.)Note:Time ...
分类:其他好文   时间:2014-10-28 08:10:58    阅读次数:221
面试中变相靠算法复杂度
一:题目:给定单向链表的头指针和一个结点指针,定义一个函数在O(1)时间删除该结点。链表结点与函数的定义如下: struct ListNode { int m_nValue; ListNode* m_pNext; }; void delete_note(ListNode *head,ListNode *current) { // 空的 if(head == null || ...
分类:编程语言   时间:2014-10-28 00:53:32    阅读次数:180
LeetCode Subsets
Given a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not co...
分类:其他好文   时间:2014-10-28 00:24:24    阅读次数:240
leetcode 第42题 Multiply Strings
题目:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-n...
分类:其他好文   时间:2014-10-28 00:23:08    阅读次数:321
Emacs 入门(https://www.zybuluo.com/eqyun/note/40788)
下载地址基本操作(C=Ctrl, M=Alt) C-f 向右移动一个字符 C-b 向左移动一个字符 C-n 移动到下一行 C-p 移动到上一行M-f 向右移动一个词【对中文是移动到下一个标点符号】 M-b 向左移动一个词【对中文...
分类:Web程序   时间:2014-10-27 22:35:16    阅读次数:477
Pascal's Triangle II
Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3,Return [1,3,3,1].Note:Could you optimize your algorithm to use...
分类:其他好文   时间:2014-10-27 17:33:44    阅读次数:223
three.js 源码注释(七)Math/Euler.js
three.js 源码注释(七)Math/Euler.js /* ///Euler对象的构造函数.用来创建一个欧拉角的对象.Euler对象的功能函数采用 ///定义构造的函数原型对象来实现. /// /// 用法: var euler = new Euler(5,3,2,'XYZ') /// 创建一个绕某轴旋转5度,绕y轴旋转某度,绕某轴旋转2度,旋转顺序为'XYZ'.有了旋转顺序才能确定每个x,y,z轴分别旋转多少度. /// NOTE: 参数x,y,z代表3个轴的旋转角度,具体哪个轴旋转多少度,需要后...
分类:Web程序   时间:2014-10-27 14:28:11    阅读次数:237
LeetCode Length of Last Word
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word does not exist, return 0. Note: A word is defi...
分类:其他好文   时间:2014-10-27 14:26:12    阅读次数:249
[LeetCode] Single Number
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:其他好文   时间:2014-10-27 12:39:09    阅读次数:192
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!