[&] () {}

Life is short , Import your DREAM.独学无友,则孤陋而难成;久处一方,则习染而不自觉。...

排序:
默认
按更新时间
按访问量

LeetCode之LCP(Longest Common Prefix)问题

这个也是简单题目,但是关键在于题意的理解。 题目原文就一句话:Write a function to find the longest common prefix string amongst an array of strings. 题意是给一个字符串数组,找出这个字符串数组中所有字符串的最...

2015-07-17 18:47:01

阅读数:1311

评论数:0

LeetCode之Roman & Integer 的转换(简单题)

罗马数字和现在使用的阿拉伯整数之间的转换在LeetCode上一共有两道题目:Roman to Integer 和Integer to Roman 如标题所说的,这是个简单的字符串处理的题目,基本上知道了规则就可以直接写出代码解决了。罗马数字基本规则做好这道题目的前提是知道一些罗马数字的基本规则。

2015-07-17 15:37:58

阅读数:891

评论数:0

LeetCode 第九题, Palindrome Number

题目原文: Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative integers be...

2014-09-08 20:27:40

阅读数:1358

评论数:0

LeetCode第八题, String to Integer (atoi)

题目原文 Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not ...

2014-09-07 10:58:30

阅读数:1514

评论数:0

LeetCode第七题,Reverse Integer

题目 Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 click to show spoilers. Have you thought about thi...

2014-08-08 23:06:37

阅读数:1223

评论数:0

LeetCode第六题,ZigZag Conversion

题目: The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pa...

2014-08-06 12:15:24

阅读数:1432

评论数:0

LeetCode第五题,Longest Palindromic Substring

题目原文: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one uniq...

2014-08-05 14:29:41

阅读数:3092

评论数:0

LeetCode第四题,Add Two Numbers

题目原文: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain...

2014-08-04 21:31:32

阅读数:1288

评论数:0

LeetCode 第三题,Longest Substring Without Repeating Characters

题目: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating lette...

2014-08-03 20:38:44

阅读数:8398

评论数:3

LeetCode 第二题,Median of Two Sorted Arrays

题目再现 There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sho...

2014-08-02 17:18:04

阅读数:2385

评论数:0

LeetCode 第一题,Two Sum

题目还原 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 indi...

2014-08-01 01:43:51

阅读数:2813

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭