/* 1,ASCII返回字符表达式中最左侧字符的ASCII代码值仅返回首字母的ASCII码值parameter char或varcharreturns integer */SELECT ASCII('a') --97SELECT ASCII('A') --65SELECT ASC...
分类:
数据库 时间:
2015-06-16 18:24:02
阅读次数:
216
用插入排序对链表排序解题思路:最省时间的方法是使用优先级队列,但是无法通过,那就直接插入排序好了。 public ListNode insertionSortList(ListNode head) { ListNode root = new ListNode(Integer.MIN_VALU...
分类:
编程语言 时间:
2015-06-15 23:25:17
阅读次数:
681
题目:
Given an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity.解答:class Solution {
public:
int trailingZeroes(int n) {
int...
分类:
其他好文 时间:
2015-06-15 20:33:08
阅读次数:
119
代码如下://innosetup自带的方法,当卸载软件时,根据卸载的状态改变时而触发procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);var ResultCode: Integer;//函数参数,结果码 ...
分类:
其他好文 时间:
2015-06-15 20:20:06
阅读次数:
206
问题描述:Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321输入一个整形数字,然后输出它的反转需要注意的是,int形变量的反转有可能是超过int的限制的,比如123456789...
分类:
其他好文 时间:
2015-06-15 18:27:14
阅读次数:
105
这道题太简单了,都不值得一看··············忽略它吧(没想到其实这道题出题者的意思是要用二分搜索的,这里暴力搜索也能通过可能是因为用的是Python,对python的时间复杂度要求低吧。)class Solution: # @param {integer[]} nums # ...
分类:
其他好文 时间:
2015-06-15 18:15:33
阅读次数:
146
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight).For example, the 32-bit integer ’11' has binary representation 000000000000...
分类:
其他好文 时间:
2015-06-15 13:10:05
阅读次数:
99
Given a sorted integer array where the range of elements are [lower, upper] inclusive, return its missing ranges.For example, given [0, 1, 3, 50, 75], lower = 0 and upper = 99, return ["2", "4->49", "...
分类:
其他好文 时间:
2015-06-15 13:09:51
阅读次数:
153
String to Integer (atoi) : 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 cha...
分类:
其他好文 时间:
2015-06-15 09:30:00
阅读次数:
240
一、使用嵌入式关系型SQLite数据库存储数据在Android平台上,集成了一个嵌入式关系型数据库——SQLite,SQLite3支持NULL、INTEGER、REAL(浮点数字)、
TEXT(字符串文本)和BLOB(二进制对象)数据类型,虽然它支持的类型只有五种,但实际上sqlite3也接受varchar(n)、
char(n)、de..
分类:
数据库 时间:
2015-06-15 00:27:17
阅读次数:
255