码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
leetcode 172: Factorial Trailing Zeroes
Given an integer?n, return the number of trailing zeroes in?n!. Note:?Your solution should be in logarithmic time complexity. Credits: Special thanks to?@ts ?for adding this problem and creat...
分类:其他好文   时间:2015-02-03 11:23:32    阅读次数:125
Oracle分区表的层次查询如何才能用到分区?
最近在调优分区表的层次查询时,发现用不到分区,做了一个实验,发现还是可以用的到的,只是写法上有些要求。 drop table test; create table test (    id  number primary key,    parent_id number,    name varchar2(20),    code varchar2(4) ) partition...
分类:数据库   时间:2015-02-03 11:15:43    阅读次数:204
leetcode.16----------3Sum Closest
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exact...
分类:其他好文   时间:2015-02-03 09:33:14    阅读次数:96
Radix Sort
1. When we are sorting the numbers we will first find the number of digits in the biggest number.2. If there are N digits in the biggest number then w...
分类:其他好文   时间:2015-02-03 06:56:27    阅读次数:116
Counting Sort
1. Counting Sort doesn't work for negative number.2. Counting Sort assumes that each element is SMALL INTEGER.3. Time Complexity is O(Maximum value - ...
分类:其他好文   时间:2015-02-03 01:53:09    阅读次数:130
leetcode 25: Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list?k?at a time and return its modified list. If the number of nodes is not a multiple of?k?then left-out nodes in the end should remain as i...
分类:其他好文   时间:2015-02-02 23:24:35    阅读次数:369
137.Single Number II(法1排序法2STL容器map哈希法3位运算法4改进的位运算)
Given an array of integers, every element appears three timesexcept for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement itwithout using e...
分类:编程语言   时间:2015-02-02 23:15:12    阅读次数:248
Two Sum
link:https://oj.leetcode.com/problems/two-sum/ 描述: Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of...
分类:其他好文   时间:2015-02-02 21:33:09    阅读次数:138
python GUI 猜数字游戏
#-*-coding:utf-8-*- importeasygui,random status=easygui.buttonbox("这是一个猜数字游戏,点击开始进行游戏,点击退出关闭游戏。",choices=["开始","退出"]) ifstatus=="开始": s_number=random.randint(1,100) count=0 u_number=0 #prints_number whilecount<6andu_numb..
分类:编程语言   时间:2015-02-02 19:59:04    阅读次数:201
Leetcode#171 Excel Sheet Column Number
原题地址注意从1开始索引,所以记得+1代码: 1 int titleToNumber(string s) { 2 int res = 0; 3 4 for (int i = 0; i < s.length(); i++) { 5 ...
分类:其他好文   时间:2015-02-02 19:42:12    阅读次数:145
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!