博客专栏  >  编程语言   >  基础算法

基础算法

leetcode基础算法题(编程语言C++)

关注
2 已关注
217篇博文
  • 355. Design Twitter

    355. Design Twitter 题目 Design a simplified version of Twitter where users can post tweets, fol...

    2018-01-08 10:24
    39
  • 94. Binary Tree Inorder Traversal

    题目描述 Given a binary tree, return the inorder traversal of its nodes’ values. For example: Given...

    2018-01-13 09:59
    21
  • 138. Copy List with Random Pointer

    题目 A linked list is given such that each node contains an additional random pointer which could poi...

    2018-01-13 11:26
    44
  • 187. Repeated DNA Sequences

    题目 All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: “ACG...

    2018-01-13 11:45
    19
  • 274. H-Index

    题目 Given an array of citations (each citation is a non-negative integer) of a researcher, write a ...

    2018-01-13 13:57
    40
  • 299. Bulls and Cows

    题目 You are playing the following Bulls and Cows game with your friend: You write down a number and ...

    2018-01-13 17:14
    40
  • 347. Top K Frequent Elements

    题目 Given a non-empty array of integers, return the k most frequent elements. For example, Given...

    6天前 21:37
    25
  • 166. Fraction to Recurring Decimal

    166. Fraction to Recurring Decimal标签(空格分隔): leetcode hashtable medium题目Given two integers representi...

    2018-01-02 18:17
    32
  • 611. Valid Triangle Number

    # 611. Valid Triangle Number标签(空格分隔): leetcode array medium—# 题目Given an array consists of non-negat...

    2017-12-25 09:16
    49
  • 714. Best Time to Buy and Sell Stock with Transaction Fee

    714. Best Time to Buy and Sell Stock with Transaction Fee标签(空格分隔): leetcode array medium题目Your are g...

    2017-12-25 10:15
    25
  • 621. Task Scheduler

    621. Task Scheduler标签(空格分隔): leetcode array medium题目Given a char array representing tasks CPU need t...

    2017-12-26 13:08
    37
  • 216. Combination Sum III

    216. Combination Sum III标签(空格分隔): leetcode array medium题目Find all possible combinations of k numbers...

    2017-12-29 09:29
    56
  • 565. Array Nesting

    565. Array Nesting标签(空格分隔): leetcode array medium题目A zero-indexed array A of length N contains all i...

    2017-12-29 10:56
    97
  • 238. Product of Array Except Self

    238. Product of Array Except Self标签(空格分隔): leetcode array medium题目 Given an array of n integers wher...

    2017-12-29 15:50
    316
  • 667. Beautiful Arrangement II

    667. Beautiful Arrangement II标签(空格分隔): leetcode array medium题目 Given two integers n and k, you need ...

    2017-12-29 17:09
    244
  • 495. Teemo Attacking

    495. Teemo Attacking标签(空格分隔): leetcode array medium题目 In LOL world, there is a hero called Teemo and...

    2017-12-29 17:39
    567
  • 718. Maximum Length of Repeated Subarray

    718. Maximum Length of Repeated Subarray标签(空格分隔): leetcode array medium题目Given two integer arrays A ...

    2017-12-21 11:22
    45
  • 29. My Calendar I

    29. My Calendar I标签(空格分隔): leetcode array medium题目 Implement a MyCalendar class to store your events...

    2017-12-21 16:29
    294
  • 560. Subarray Sum Equals K

    560. Subarray Sum Equals K标签(空格分隔): leetcode array medium题目Given an array of integers and an integer...

    2017-12-22 11:09
    230
  • 153. Find Minimum in Rotated Sorted Array

    153. Find Minimum in Rotated Sorted Array标签(空格分隔): leetcode array medium题目Suppose an array sorted in...

    2017-12-22 15:05
    287
img博客搬家
img撰写博客
img发布 Chat
img专家申请
img意见反馈
img返回顶部