码迷,mamicode.com
首页 >  
搜索关键字:null    ( 33914个结果
Reverse Linked List II——LeetCode
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No...
分类:其他好文   时间:2015-04-05 11:54:52    阅读次数:128
JAVA学习笔记(五十五)- 元数据 MetaData和可滚动的结果集
元数据 Meta Data/* * 元数据 Meta Data */ public class Test03 { Connection conn = null; PreparedStatement pstmt=null; ResultSet rs = null; public void test(){ conn=DBUtil.getConnectio...
分类:编程语言   时间:2015-04-05 10:37:15    阅读次数:161
ThreadLocal的使用
熟悉Looper源码的朋友可能知道,looper与线程绑定并不是直接set进去的,而是通过ThreadLocal这个东西间接将looper的引用交给当前线程持有的。 Looper.java     private static void prepare(boolean quitAllowed) {         if (sThreadLocal.get() != null) {     ...
分类:其他好文   时间:2015-04-05 09:10:04    阅读次数:127
leetcode:Symmetric Tree
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solutio...
分类:其他好文   时间:2015-04-05 09:04:00    阅读次数:134
js类型转换的坑
JS的灵活 说好听是说JS灵活, 说不好听就是JS的坑太多, JS类型转换就是一个大坑, JS的类型包括了原始类型的[null, undefined, String ,Number, Boolean],以及对象类型的[function, object];null, undefined, "",...
分类:Web程序   时间:2015-04-05 01:07:33    阅读次数:201
动态内存Treap
注意root的v要给一个很奇怪的数,null的s是0。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 cons...
分类:其他好文   时间:2015-04-04 21:06:20    阅读次数:132
C语言多项式加法
#include<stdio.h>#include<stdlib.h>#defineERROR-1typedefstructlist{ doublecoef; intexpn; structlist*next;}polyn;polyn*creatpolyn(polyn*p,intm){ p=(polyn*)malloc(sizeof(polyn)); p->next=NULL; while(m--){ polyn*temp=(polyn*)malloc(sizeof(poly..
分类:编程语言   时间:2015-04-04 19:49:48    阅读次数:227
(转)百度web前端笔试题
1、JavaScript包括哪些数据类型?我回答的是有两种:基本类型和对象,其中基本类型包括数字、字符串、布尔和null;对象(类似对象),包括数组、函数、内置对象、自定义对象。不过按理说字符串也有些对象的特点。我这个回答是参考的JavaScript权威指南的,有些小问题,第一类中缺少了undefi...
分类:Web程序   时间:2015-04-04 19:46:01    阅读次数:160
LeetCode - Binary Tree Level Order Traversal II
二叉树的层序遍历思路一:利用队列,将每一层节点放入队列,各层节点之间加入NULL隔开。 1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 ...
分类:其他好文   时间:2015-04-04 19:44:40    阅读次数:110
Reverse Linked List II--LeetCode
题目: Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4->3->2->5->NULL. Note: Given m, ...
分类:其他好文   时间:2015-04-04 12:20:09    阅读次数:138
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!