题目描述
链接地址
解法
算法解释
题目描述
Given an array of integers, the majority number is the number that occurs more than 1/3 of the size of the array.
Example
Given [1, 2, 1, 2, 1, 3, 3], return 1.
Cha...
分类:
其他好文 时间:
2015-07-22 22:46:05
阅读次数:
133
Given an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].public class Solution { public List getRow(int ro...
分类:
其他好文 时间:
2015-07-22 22:39:15
阅读次数:
150
1. Problem去掉链表的倒数第n个节点,并返回链表头。一次遍历完成Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list.....
分类:
其他好文 时间:
2015-07-22 22:32:31
阅读次数:
236
#import #import "Function.h"int main(int argc, const char * argv[]) {//函数定义 /*返回值类型 函数名(参数1, 参数2, 参数3, 参数4) { 函数体; return 返回值; } ...
分类:
移动开发 时间:
2015-07-22 22:31:24
阅读次数:
315
null 与 undefined 都是 ==null 为truealert(typeof(123)) numberalert(typeof(NAN)) 打印 number不靠谱alert($.isNumric(NAN))1 isNumeric: function( obj ) { 2 return....
分类:
Web程序 时间:
2015-07-22 22:29:38
阅读次数:
106
GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1]...
分类:
其他好文 时间:
2015-07-22 22:16:08
阅读次数:
105
/* * 智能机浏览器版本信息: * */ var browser = { versions: function () { var u = navigator.userAgent, app = navigator.appVersion; return {//移动终端浏览器版本信息 trident:....
分类:
Web程序 时间:
2015-07-22 20:49:32
阅读次数:
128
$("#btn").click(function() { var w = window.open(); setTimeout(function() { w.location = "http://t.cn"; }, 1000); return false;});原...
状态栏操作在Swift开发过程中,针对状态栏操作的过程有很多。1、在ViewController中操作当前ViewController的状态栏[objc]view plaincopy/**隐藏状态栏*/overridefuncprefersStatusBarHidden()->Bool{return...
分类:
移动开发 时间:
2015-07-22 20:35:00
阅读次数:
156
var browser = { versions: function() { var u = navigator.userAgent, app = navigator.appVersion; return {//移动终端浏览器版本信息 ...
分类:
移动开发 时间:
2015-07-22 20:21:51
阅读次数:
120