博客专栏  >  编程语言   >  leetcode

leetcode

这是本人刷leetcode的一点记录,希望对大家有所帮助

关注
1 已关注
16篇博文
  • 《leetCode》:3Sum Closest

    题目Given an array S of n integers, find three integers in S such that the sum is closest to a given n...

    2015-11-03 20:16
    335
  • 《leetCode》:3Sum

    题目Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all ...

    2015-11-03 19:52
    410
  • 《leetCode》:Merge Two Sorted Lists

    题目Merge two sorted linked lists and return it as a new list. The new list should be made by splicing...

    2015-11-02 22:28
    324
  • 《leetCode》:Remove Nth Node From End of List

    题目描述Given a linked list, remove the nth node from the end of list and return its head.For example, ...

    2015-11-02 20:53
    324
  • 《leetCode》:Remove Duplicates from Sorted Array II

    题目描述Follow up for "Remove Duplicates": What if duplicates are allowed at most twice?For example, Giv...

    2015-11-02 19:07
    338
  • 《leetCode》:Remove Duplicates from Sorted Array

    题目描述Given a sorted array, remove the duplicates in place such that each element appear only once and...

    2015-11-02 18:58
    336
  • 《leetCode》:Longest Common Prefix

    题目描述 Write a function to find the longest common prefix string amongst an array of strings. 大意就...

    2015-11-01 17:35
    333
  • 《leetCode》:Integer to Roman

    题目描述Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from ...

    2015-11-01 16:49
    350
  • 《leetCode》:Roman to integer

    题目描述Roman to integer罗马数字介绍基本字符 I V X L C D M 相应的阿拉伯数字表示为 1 5 10 50 100 500 1000 1、相同的数字连写、所表示的数...

    2015-11-01 15:35
    306
  • 《leetCode》:palindrome Number

    题目描述Determine whether an integer is a palindrome. Do this without extra space.题目大意:即检测一个数是否为回文数,不开辟额...

    2015-10-31 22:37
    401
  • 《leetCode》:Convert String to Integer

    题目描述Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cas...

    2015-10-31 21:33
    563
  • 《leetCode》:Reverse Integer

    题目描述:Reverse digits of an integer.Example1: x = 123, return 321 Example2: x = -123, return -321实现代码如...

    2015-10-31 19:01
    401
  • 《leetCode》:ZigZag Conversion

    关于ZigZag的理解/* 1、第i排从i开始 2、 含numRows的每列相邻之间的元素的间隔为step=2*(numRows-1) 3、斜线上面的元素间隔为:step=j+step-2*i;其中...

    2015-10-31 17:21
    324
  • 《leetCode》:Longest Substring Without Repeating Characters

    题目描述如下:Given a string, find the length of the longest substring without repeating characters. For e...

    2015-10-31 14:25
    321
  • 《leetCode》:add two num

    题目描述如下You are given two linked lists representing two non-negative numbers. The digits are stored in...

    2015-10-29 22:37
    321
  • 《LeetCode》:Two Sum

    《LeetCode》:Two Sum昨天刚说的准备去刷《程序员面试金典》上面的题,但是看了下那本书上面的题,感觉都没有什么意思,因此也就打算来刷了leetCode上面的题了。刷题的顺序选择了按照顺...

    2015-10-29 20:40
    327
img博客搬家
img撰写博客
img专家申请
img意见反馈
img返回顶部