Skip to content

Latest commit

 

History

History

neet_code_150_cpp

NeetCode 150 C++

基本的にはRustで一旦解いたあとでC++でも解くというスタンス(基本的に初見ではない)

  • now(2024 0422): READMEの更新中(リンクを追加した,まだ途中)

Array & Hash

Two Pointers

Sliding Window

Stack

Binary Search

Trees

  • Invert Binary Tree

    • 初見: x
    • 理解: o
  • Maximum Depth of Binary Tree

    • 初見: x
    • 理解: o
  • Diameter of Binary Tree

    • 初見: x
    • 理解: o
  • Balanced Binary Tree

    • 初見: x
    • 理解: x
  • Same Tree

    • 初見: x
    • 理解: o
  • Subtree of Another Tree

    • 初見: x
    • 理解: x
  • Lowest Common Ancestor of Binary Search Tree

    • 初見: x
    • 理解: o
  • Binary Tree Level Order Traversal

    • 初見: x
    • 理解: o
  • Binary Tree Right Side View

    • 初見: x
    • 理解: x
  • Count Good Nodes In Binary Tree

    • 初見: x
    • 理解: o
  • Valid Binary Search Tree

    • 初見: x
    • 理解: x
  • Kth Smallest Element In a Bst

    • 初見: x
    • 理解: x
  • Construct Binary Tree From Preorder And Inorder Traversal

    • 初見: x
    • 理解: x
  • Binary Tree Maximum Path Sum

    • 初見: x
    • 理解: o
  • Serialize Ans Deserialize Binary Tree

    • 初見: x
    • 理解: x

Tries

  • Implement Trie Prefix Tree

    • 初見: x
    • 理解: o
  • Design Add And Search Words Data Structure

    • 初見: x
    • 理解: o
  • Word Search II

    • 初見: x
    • 理解: x

Heap / Priority Queue

Backtracking

Graphs

Advanced Graphs

  • Reconstruct Itinerary

    • 理解: x
  • Min Cost to Connect All Points

    • 初見: o
    • 理解: o
  • Network Dleay Time

    • 初見: o
    • 理解: o
  • Swim in Rising Water

    • 初見: x
    • 理解: x
  • Alien Dictionary

    • 初見: x
    • 理解: x
  • Cheapest Flight Within K Stops

    • 理解: x

1-D Dynamic Programming

  • Climbing Stairs

    • 理解: o
  • Min Cost Climbing Stairs

    • 理解: o
  • House Robber

    • 理解: o
  • House Robber II

    • 理解: o
  • Longest Palindromic Substring

    • 理解: o
  • Palindromic Substring

    • 初見: o
  • Decode Ways

    • 初見: o
  • Coin Change

    • 初見: o
  • Max Product Subarray

    • 理解: o
  • Partition Equal Subset Sum

    • 理解: o

2-D Dynamic Programming

  • Unique Paths

    • 理解: x
  • Longest Common Subsequence

    • 理解: o
  • Best Time to Buy And Sell Stock With Cooldown

    • 理解: x
  • Coin Change II

    • 理解: x

Greedy

  • Maximum Subarray

    • 理解: x
  • Jump Game

    • 理解: o
  • Jump Game II

    • 理解: x
  • Gas Station

    • 理解: x
  • Hand of Straights

    • 理解: o
  • Merge Triplets to From Target Triplet

    • 理解: o
  • Partition Labels

    • 理解: x
  • Valid Parenthesis String

    • 理解: o

Intervals

  • Insert Interval

    • 理解: o
  • Merge Intervals

    • 理解: o
  • Non Overlapping Intervals

    • 理解: o
  • Meeting Rooms

    • 初見: o
    • 理解: o
  • Meeting Rooms II

    • 初見: x
    • 理解: x
  • Minimum Interval to Include Each Query

    • 初見: x
    • 理解: x

Math & Geometry

  • Rot Image

    • 理解: o
  • Spiral Matrix

    • 理解: o
  • Set Matrix Zeroes

    • 理解: o
  • Happy number

    • 理解: x
  • Plus One

    • 理解: x
  • Pow

    • 理解: x
  • Multiply Strings

    • 理解: o

Bit Manipulation

  • Single Number

    • 理解: o
  • Number of 1 Bits

    • 理解: o
  • Counting Bits

    • 理解: o
  • Reverse Bits

    • 理解: x
  • Sum of Two Integers

    • 理解: o
  • Reverse Integer

    • 理解: o