First Missing Positive
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in ...
分类:
其他好文 时间:
2015-07-10 11:27:12
阅读次数:
92
219 Contains Duplicate II链接:https://leetcode.com/problems/contains-duplicate-ii/
问题描述:
Given an array of integers and an integer k, find out whether there there are two distinct indices i and j in...
分类:
其他好文 时间:
2015-07-10 09:30:38
阅读次数:
113
题目:
Reverse digits of an integer.Example1: x = 123, return 321
Example2: x = -123, return -321Here are some good questions to ask before coding. Bonus points for you if you have already though...
分类:
其他好文 时间:
2015-07-10 09:30:30
阅读次数:
107
??1.一个应用程序一般都是由多个activity组成的。2.任务栈(task stack)(别名backstack后退栈)记录存放用户开启的activity的。3.一个应用程序一被开启系统就给他分配一个任务栈,当所有的activity都退出的时候,任务栈就清空了。4.任务栈的id是一个integer的数据类型 自增长的。5.在android操作系统里面会存在多个任务栈,一个应用程序一个任务栈。6...
分类:
移动开发 时间:
2015-07-10 02:15:30
阅读次数:
177
Milk PatternsTime Limit: 5000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:326164-bit integer IO format:%lld Java class name:M...
分类:
其他好文 时间:
2015-07-09 21:27:22
阅读次数:
196
Musical ThemeTime Limit: 1000msMemory Limit: 30000KBThis problem will be judged onPKU. Original ID:174364-bit integer IO format:%lld Java class name:M...
分类:
其他好文 时间:
2015-07-09 21:11:23
阅读次数:
95
排列a包含N分子,其元素属于[0,N]之间,且不存在反复的元素。请你找出数组中缺失的元素(由于[0,N]之间有N+1个元素。而数组仅仅能存储N个元素。所以必定缺少一个元素)。当中对数组的操作满足下列的条件:不能在常数时间内读取数组中的元素,可是可以读取数组中元素的某一个bit值。可以在常数时间内交换...
分类:
编程语言 时间:
2015-07-09 19:43:15
阅读次数:
130
题目:
Given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to 3999.
题意:
给定一个整数,将其转化为罗马数字。
题目给定的输入保证在1-3999之间。
算法分析:
参考了博客http://www.cnbl...
分类:
编程语言 时间:
2015-07-09 13:20:42
阅读次数:
151
题目:It can be seen that the number, 125874, and its double, 251748, contains exactly the same digits, but in a different order. Find the smallest positive integer, x, such that 2x, 3x, 4x, 5x, and 6x, ...
分类:
编程语言 时间:
2015-07-09 13:20:06
阅读次数:
158
工作目录:
实体类:UserInfo.java
package com.yc.crm.entity;
import java.util.Date;
public class UserInfo {
private Integer uid;
private String email;
private String passwords;...
分类:
其他好文 时间:
2015-07-09 11:30:30
阅读次数:
109