题目一: //有关于原型继承的代码如下:function Person(name) { this.name = name;}Person.prototype = { getName : function() { return this.name; }}function Student(name, i ...
分类:
Web程序 时间:
2016-09-11 14:20:33
阅读次数:
197
在华为的试题中看到的一个小题目 类似这样: #include "stdio.h" char *get_string_1() { char p[] = "hello world!"; return p; } char *get_string_2() { char *p = "hello world!" ...
分类:
其他好文 时间:
2016-09-11 14:12:50
阅读次数:
167
本次学习了1、预处理命令#include<stdio.h> 2、主函数main() 3、输出函数printf 4、以及格式:#include<stdio.h> int main() { return 0; } 在实验中多次遇到忘记printf命令的拼写,经过反复拼写抄写,熟记了这个命令。 在程序的编 ...
分类:
其他好文 时间:
2016-09-11 13:03:15
阅读次数:
174
题目: Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example 简单题 ...
分类:
其他好文 时间:
2016-09-11 12:48:44
阅读次数:
112
题目: Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". ...
分类:
其他好文 时间:
2016-09-11 11:33:50
阅读次数:
163
题目如下: Divide two integers without using multiplication, division and mod operator. If it is overflow, return MAX_INT. 分析: 整型相除,不使用乘除法的话,只能使用减法较为简单了。即循 ...
分类:
其他好文 时间:
2016-09-11 10:15:56
阅读次数:
178
题目: Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding column number. For example ...
分类:
其他好文 时间:
2016-09-11 09:03:28
阅读次数:
113
Given a binary tree, return the postorder traversal of its nodes' values. For example:Given binary tree {1,#,2,3}, return [3,2,1]. Note: Recursive sol ...
分类:
其他好文 时间:
2016-09-11 07:54:03
阅读次数:
149
Given a binary tree, return the inorder traversal of its nodes' values. For example:Given binary tree [1,null,2,3], 1 \ 2 / 3 return [1,3,2]. Note: Re ...
分类:
其他好文 时间:
2016-09-11 06:51:55
阅读次数:
135
Given a binary tree, return the preorder traversal of its nodes' values. For example:Given binary tree {1,#,2,3}, return [1,2,3]. Note: Recursive solu ...
分类:
其他好文 时间:
2016-09-11 06:51:27
阅读次数:
201