博客专栏  >  编程语言   >  LeetCode刷题记

LeetCode刷题记

LeetCode刷题记录

关注
0 已关注
26篇博文
  • LeetCode之24----Swap Nodes in Pairs

    题目: Given a linked list, swap every two adjacent nodes and return its head. For example, Gi...

    2016-04-21 19:08
    1283
  • LeetCode之23---Merge k Sorted Lists

    题目:   Merge k sorted linked lists and return it as one sorted list. Analyze and describe its comp...

    2016-04-20 23:43
    460
  • LeetCode之22----Generate Parentheses

    题目: Given n pairs of parentheses, write a function to generate all combinations of well-formed par...

    2016-04-20 19:57
    822
  • LeetCode之21----Merge Two Sorted Lists

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

    2016-04-17 16:59
    2947
  • LeetCode之20---Valid Parentheses

    题目: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine ...

    2016-04-16 22:47
    635
  • LeetCode之19---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...

    2016-04-16 14:33
    2814
  • LeetCode之18---4Sum

    题目: Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d...

    2016-04-16 00:00
    709
  • LeetCode之17----Letter Combinations of a Phone Number

    题目: Given a digit string, return all possible letter combinations that the number could represe...

    2016-04-14 18:46
    2974
  • LeetCode之16----3Sums Closest

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

    2016-04-12 19:14
    751
  • LeetCode之15----3Sum

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

    2016-04-11 22:00
    495
  • LeetCode之14---Longest Common Prefix

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

    2016-04-10 14:21
    2144
  • LeetCode之13---Roman to Integer

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

    2016-04-09 19:42
    460
  • LeetCode之12---Integer to Roman

    题目:   Given an integer, convert it to a roman numeral.   Input is guaranteed to be within the rang...

    2016-04-09 15:49
    1912
  • LeetCode之11---Container With Most Water

    题目:    Given n non-negative integers a1, a2, ..., an, where each represents a point at coordin...

    2016-04-08 18:00
    1059
  • LeetCode之10 --- Regular Expression Matching

    题目:   , Implement regular expression matching with support for '.' and '*'. '.' Matches any sin...

    2016-04-07 20:22
    624
  • LeetCode之9---Palindrome Number

    题目:   Determine whether an integer is a palindrome. Do this without extra space. 题目大意:   判断一个数字是不...

    2016-04-05 22:02
    400
  • LeetCode之8----String to Integer (atoi)

    题目:   Implement atoi to convert a string to an integer. 题目大意:   将一个数字字符串转化为整数数字,返回整数数字。 思路:  ...

    2016-04-05 19:53
    355
  • LeetCode之7 --- Reverse Integer

    题目:   Reverse digits of an integer.  Example1: x = 123, return 321  Example2: x = -123, return ...

    2016-04-04 18:41
    387
  • LeetCode之6---ZigZag Conversion

    题目:      The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like...

    2016-04-04 15:19
    339
  • LeetCode之338—-Counting Bits

    最近上算法课上的有点心塞,所以感觉应该刷刷题来见见世面了,所以选择了LeetCode来做一点题目。 LeetCode之338: Given a non negative integer numbe...

    2016-03-26 15:31
    360
img博客搬家
img撰写博客
img发布 Chat
img专家申请
img意见反馈
img返回顶部