码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
LintCode-Minimum Adjustment Cost
Given an integer array, adjust each integers so that the difference of every adjcent integers are not greater than a given number target.If the array ...
分类:其他好文   时间:2014-12-24 06:25:41    阅读次数:170
九度OJ 1041 Simple Sorting (排序,STL)
题目1041:Simple Sorting 时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:3971 解决:1483 题目描述: You are given an unsorted array of integer numbers. Your task is to sort this array and kill possible...
分类:编程语言   时间:2014-12-23 21:16:14    阅读次数:262
Leetcode: Excel Sheet Column Title
Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 ->...
分类:其他好文   时间:2014-12-23 13:47:09    阅读次数:158
Excel Sheet Column Title
Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 ->...
分类:其他好文   时间:2014-12-23 11:54:44    阅读次数:186
leetcode 154: Excel Sheet Column Title
Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 -> AB Credits: S...
分类:其他好文   时间:2014-12-23 10:36:57    阅读次数:116
算法导论学习笔记(3)-习题2.3-7-排序+二分
question(题意): Describe a O(n lg(n))-time algorithm that, given a set S of n integers and another integer x, determines whether or not there exist two elements in S whose sum is exactly x. 设计一个O(n ...
分类:编程语言   时间:2014-12-23 09:05:46    阅读次数:239
Leetcode Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.对于这道题不能用额外的空间,即不能用一个数组来保存各个位数,因此对于这种问题可以采用判断两头数字的方法 1 package Palindrome.Num...
分类:其他好文   时间:2014-12-22 22:42:10    阅读次数:167
LeetCode Excel Sheet Column Title
Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 ->...
分类:其他好文   时间:2014-12-22 22:30:05    阅读次数:211
Excel Sheet Column Title
Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 -> AB Credits...
分类:其他好文   时间:2014-12-22 19:40:49    阅读次数:151
leetcode. Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:其他好文   时间:2014-12-22 19:18:27    阅读次数:180
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!