题目:
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn’t matter what you leave beyond the new length.翻译:...
分类:
其他好文 时间:
2016-03-04 14:36:53
阅读次数:
122
题目:
Given a sorted linked list, delete all duplicates such that each element appear only once.For example,
Given 1->1->2, return 1->2.
Given 1->1->2->3->3, return 1->2->3.翻译:
给定一个排序号的链表,删除所有的重复元素,保...
分类:
其他好文 时间:
2016-03-04 14:36:30
阅读次数:
139
题目:
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
翻译:
给定一个正数,返回它类似Excle中对应的列标题。分析:
实际为10...
分类:
其他好文 时间:
2016-03-03 14:52:04
阅读次数:
122
题目:https://leetcode.com/problems/container-with-most-water/Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai...
分类:
其他好文 时间:
2016-01-26 12:22:39
阅读次数:
139
package com.mingxin.leetcode.leet_14;/** * Created by Administrator on 2016/1/25. */public class LongestCommonPrefix { public static void main(Stri...
分类:
其他好文 时间:
2016-01-26 12:19:17
阅读次数:
132
Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Elemen...
分类:
其他好文 时间:
2016-01-26 12:11:12
阅读次数:
130
Leet 题目整理归类 - 快速通道 (持续更新)...
分类:
其他好文 时间:
2015-12-03 14:16:16
阅读次数:
239
题是pdf版Sample Input23mississippinni55i55ippi2foobar|=o08arSample Output10/** 题意:给出一个normal串,一个leet串,看能否符合关系的映射 做法:dfs 将两个串进行匹配注意初始化**/#include #i...
分类:
其他好文 时间:
2015-08-15 22:55:06
阅读次数:
125
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.
For example, given
s = "leetcode",
dict = ["leet"...
分类:
其他好文 时间:
2015-08-04 17:13:03
阅读次数:
111
Leet Code -- Unique BST...
分类:
其他好文 时间:
2015-07-23 13:58:40
阅读次数:
64