一般数据采用的固定的静态数据类型,而SQLite采用的是动态数据类型,会根据存入值自动判断。SQLite具有以下五种数据类型:1.NULL:空值。 2.INTEGER:带符号的整型,具体取决有存入数字的范围大小。 3.REAL:浮点数字,存储为8-byte IEEE浮点数。 4.TEXT:字符串文本...
分类:
数据库 时间:
2015-06-22 13:37:16
阅读次数:
159
Gray Code
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the to...
分类:
其他好文 时间:
2015-06-22 11:11:12
阅读次数:
115
Tree
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 13091
Accepted: 4205
Description
Give a tree with n vertices,each edge has a length(positive integer l...
分类:
其他好文 时间:
2015-06-21 19:50:45
阅读次数:
116
题目链接:https://leetcode.com/problems/palindrome-number/
Determine whether an integer is a palindrome. Do this without extra space.
click to show spoilers.
Some hints:
Could negative inte...
分类:
其他好文 时间:
2015-06-21 15:52:27
阅读次数:
145
TreeTime Limit: 1000MS Memory Limit: 30000K
Total Submissions: 13068 Accepted: 4195
DescriptionGive a tree with n vertices,each edge has a length(positive integer less than 1001).
Defin...
分类:
其他好文 时间:
2015-06-21 15:49:40
阅读次数:
112
N皇后问题Time Limit: 1000msMemory Limit: 32768KBThis problem will be judged onHDU. Original ID:255364-bit integer IO format:%I64d Java class name:Main在N*N...
分类:
其他好文 时间:
2015-06-21 15:45:00
阅读次数:
106
题目链接:https://leetcode.com/problems/string-to-integer-atoi/
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, ple...
分类:
其他好文 时间:
2015-06-21 14:30:06
阅读次数:
142
没想到哈希表insert插入是性能这么差,把哈希表该为数组后,运行时间减少了100msclass Solution {public: typedef pair Sdata; string intToRoman(int num) { Sdata pattern[] = { ...
分类:
其他好文 时间:
2015-06-21 14:25:51
阅读次数:
130
1. 空指针、NULL指针、零指针
1.1什么是空指针常量
0、0L、'\0'、3 - 3、0 * 17 (它们都是“integer constant expression”)以及 (void*)0 (我觉得(void*)0应该算是一个空指针吧,更恰当一点)等都是空指针常量(注意 (char*) 0 不叫空指针常量,只是一个空指针值)。至于系统选取哪种形式作为空指针常量使用,则是实现相...
分类:
其他好文 时间:
2015-06-21 13:11:51
阅读次数:
106
# -*- coding: utf-8 -*-
#
# def displayNumType(num):
# print num, 'is',
# if type(num) == type(0):
# print 'an integer'
# elif type(num) == type(0L):
# print 'a long'
# ...
分类:
编程语言 时间:
2015-06-21 09:27:03
阅读次数:
216