博客专栏  >  编程语言   >  LeetCode(C++)

LeetCode(C++)

用C++实现LeetCode中的题目。

关注
18 已关注
47篇博文
  • LeetCode(50)Pow

    题目如下: Implement pow(x, n). 分析如下: 看几个例子, pow(3,4)  =  pow(3,2)*pow(3,2)  =  (pow(3,1)*pow(3,1)) * ...

    2014-02-06 08:43
    806
  • LeetCode(49)Anagram

    题目如下: Given an array of strings, return all groups of strings that are anagrams. Note: All inputs wi...

    2014-01-23 06:03
    1465
  • LeetCode(48)RotateImage

    题目如下: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockw...

    2014-02-15 15:21
    1336
  • LeetCode(47) PermutaionsII

    题目如下: 分析如下: 我的代码: 参考资料:

    2014-11-21 16:07
    1011
  • LeetCode(46) Permutations

    题目如下: 分析如下: 我的代码:

    2014-11-21 15:54
    1197
  • LeetCode(45) Jump Game II

    题目如下: Given an array of non-negative integers, you are initially positioned at the first index of th...

    2015-01-16 17:37
    1363
  • LeetCode(44) Wildcard Matching

    题目如下: '?' Matches any single character. '*' Matches any sequence of characters (including the empty ...

    2015-01-04 15:26
    1350
  • LeetCode(43) Multiply Strings

    题目如下: Given two numbers represented as strings, return multiplication of the numbers as a string. N...

    2015-01-06 07:09
    594
  • LeetCode(42) Trapping Rain Water

    占位。。。

    2015-03-30 13:47
    605
  • LeetCode(41) First Missing Positive

    题目如下: A peak element is an element that is greater than its neighbors. Given an input array where nu...

    2014-12-31 08:08
    1820
  • LeetCode(40) Combination Sum II

    题目如下: My Submissions Question Solution  Given a collection of candidate numbers (C) and a target num...

    2014-12-18 16:27
    917
  • LeetCode(39) Combination Sum

    题目如下: Given a set of candidate numbers (C) and a target number (T), find all unique combinations in ...

    2014-12-18 14:28
    802
  • LeetCode(38) Count and Say

    题目如下: The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, ...

    2014-12-23 15:19
    761
  • LeetCode(37) Sudoku Solver

    题目如下: Write a program to solve a Sudoku puzzle by filling the empty cells. Empty cells are indicated...

    2015-03-23 07:55
    849
  • LeetCode(36) Valid Sudoku

    题目如下: Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board...

    2015-03-28 02:31
    458
  • Leetcode(35) Search Insert Position

    代码如下 class Solution { public: int searchInsert(int A[], int n, int target) { int i = 0; ...

    2014-10-07 05:27
    668
  • LeetCode(34)Search for a Range

    题目如下: Given a sorted array of integers, find the starting and ending position of a given target valu...

    2014-03-07 04:58
    1642
  • LeetCode(33)Search in Rotated Sorted Array

    题目如下: Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 ...

    2014-02-05 03:36
    901
  • LeetCode(32)Longest Valid Parentheses

    题目如下: Given a string containing just the characters '(' and ')', find the length of the longest vali...

    2014-03-07 08:31
    1606
  • LeetCode(31) Next Permutation

    先占位 to be continued

    2015-03-28 02:20
    463
img博客搬家
img撰写博客
img发布 Chat
img专家申请
img意见反馈
img返回顶部