lcode
  • Introduction
  • summary
  • 2018
  • 2019
  • Sorting
    • 1.1 Insertion Sort
    • 1.2 Merge Sort
    • 1.3 Quick Sort
    • 1.4 Topological Sort
  • Binary Search
    • 2.1 Classical Binary Search
    • L153. Find Minimum in Rotated Sorted Array I&II
    • L33. Search in Rotated Sorted Array I &II
    • L374. Guess Number Higher or Lower
    • L35. Search Insert Position
    • L74. Search a 2D Matrix
    • 1428. Leftmost Column with at Least a One
    • L 50. Pow(x, n)
    • L 29. Divide Two Integers
    • L 69. Sqrt(x)
    • L278. First Bad Version
    • L658. Find K Closest Elements
    • L349.Intersection of Two Arrays
    • L162. Find Peak Element
    • LC1219.Heaters
    • LC183. Wood Cut
    • Lint447. Search in a Big Sorted Array
    • L540. Single Element in a Sorted Array
    • L774. Minimize Max Distance to Gas Station
    • L302. Smallest Rectangle Enclosing Black Pixels
  • Page 2
  • Dynamic Programming
    • L375. Guess Number Higher or Lower II
    • L62. Unique Paths
    • L198. House Robber
    • L256. Paint House
    • L139. Word Break
    • L746. Min Cost Climbing Stairs
    • L70. Climbing Stairs
    • L276. Paint Fence
    • L931. Minimum Falling Path Sum
    • L64. Minimum Path Sum
    • L174. Dungeon Game
    • L221. Maximal Square
    • L134. Gas Station
  • Binary Tree
    • L144. Binary Tree Preorder Traversal
    • L94. Binary Tree Inorder Traversal
    • L145. Binary Tree Postorder Traversal
    • L110. Balanced Binary Tree
    • 1382. Balance a Binary Search Tree
    • L102. Binary Tree Level Order Traversal
    • L257. Binary Tree Paths
    • L124. Binary Tree Maximum Path Sum
    • L 236. Lowest Common Ancestor of a Binary Tree
    • L 538. Convert BST to Greater Tree
    • L 297. Serialize and Deserialize Binary Tree
      • L428. Serialize and Deserialize N-ary Tree
    • L 173. Binary Search Tree Iterator
    • L 103. Binary Tree Zigzag Level Order Traversal
    • L100. Same Tree
    • L112. Path Sum
    • L199. Binary Tree Right Side View
    • L129. Sum Root to Leaf Numbers
    • Lint. binary tree path sum ii/iii
    • L404. Sum of Left Leaves
    • L617. Merge Two Binary Trees
    • L98. Validate Binary Search Tree
    • L314. Binary Tree Vertical Order Traversal
      • 987. Vertical Order Traversal of a Binary Tree
    • L543. Diameter of Binary Tree
      • 1522. Diameter of N-Ary Tree
    • L114. Flatten Binary Tree to Linked List
    • L101. Symmetric Tree
    • L105. Construct Binary Tree from Preorder and Inorder Traversal
    • L230. Kth Smallest Element in a BST
    • L872. Leaf-Similar Trees
    • L366. Find Leaves of Binary Tree
    • L156. Binary Tree Upside Down
    • L116. Populating Next Right Pointers in Each Node
    • L572. Subtree of Another Tree
    • L96. Unique Binary Search Trees
    • 938. Range Sum of BST
    • L270. Closest Binary Search Tree Value
    • 536. Construct Binary Tree from String
    • L450.Delete Node in BST
  • DFS/BFS/Backtracking
    • L200. Number of Islands
    • 827. Making A Large Island
    • 1254. Number of Closed Islands
    • L127. Word Ladder
    • *L336. Palindrome Pairs
      • L409. Longest Palindrome
    • L39. Combination Sum
    • L78. Subsets
    • L46. Permutations
    • L131.Palindrome Partitioning
    • L17. Letter Combinations of a Phone Number
    • L79. Word Search
    • L784. Letter Case Permutation
    • L22. Generate Parentheses
    • L77. Combinations
    • L490. The Maze
    • L417. Pacific Atlantic Water Flow
    • LL815. Bus Routes
    • L312.Burst Balloons
  • Math/Bit M
    • 650. 2 Keys Keyboard
    • 判断两个线段是否相交
    • L227.Basic Calculator
    • L149. Max Points on a Line
    • L633. Sum of Square Numbers
    • L9. Palindrome Number
    • L66. Plus One
    • L461. Hamming Distance
    • L311. Sparse Matrix Multiplication
    • 1570. Dot Product of Two Sparse Vectors
    • L477.Total Hamming Distance
    • L476. Number Complement
    • L136.Single Number
    • L231.Power of Two
    • L169.Majority Element
    • L268. Missing number
    • L693. Binary Number with Alternating Bits
    • L400. Nth Digit
    • L190. Reverse Bits
    • L150. Evaluate Reverse Polish Notation
    • L273. Integer to English Words
    • L12. Integer to Roman
    • L41. First Missing Positive
    • 223. Rectangle Area
    • 528. Random Pick with Weight
      • 398. Random Pick Index
    • Knuth Shuffle
    • L37. Sudoku Solver
    • 1610. Maximum Number of Visible Points
  • Linked List
    • L2. Add Two Numbers
    • L206. Reverse Linked List
    • L21. Merge Two Sorted Lists
    • 148. Sort List
    • L234. Palindrome Linked List
    • L160. Intersection of Two Linked Lists
    • L23. Merge k Sorted Lists
    • L19. Remove Nth Node From End of List
    • L237. Delete Node in a Linked List
    • L817. Linked List Components
    • L83. Remove Duplicates from Sorted List
    • Double linked list deletion/Insertion
    • L426. Convert Binary Search Tree to Sorted Doubly Linked List
  • Array
    • L54. Spiral Matrix/Order
    • L121. Best Time to Buy and Sell Stock
    • L283. Move Zeroes
    • L26.L27. Remove Duplicates from Sorted Array
    • L88. Merge Sorted Array
    • 280. Wiggle Sort
    • L56. Merge Intervals
    • 986. Interval List Intersections
    • L57. Insert Interval
    • L75. Sort Colors
    • L128. Longest Consecutive Sequence
    • L560. Subarray Sum Equals K
      • 974. Subarray Sums Divisible by K
      • L523. Continuous Subarray Sum
      • 713. Subarray Product Less Than K
      • 1658. Minimum Operations to Reduce X to Zero
    • L520. Detect Capital
    • L448. Find All Numbers Disappeared in an Array
      • 1980. Find Unique Binary String
      • 442. Find All Duplicates in an Array
    • L118. Pascal's Triangle
    • L561. Array Partition I
    • L252. Meeting Rooms
    • L.665. Non-decreasing Array
    • L347. Top K Frequent Elements
    • L215. Kth Largest Element in an Array
    • L747. Largest Number At Least Twice of Others
    • L.498. Diagonal Traverse
    • L849. Maximize Distance to Closest Person
    • L840. Magic Squares In Grid
    • L495. Teemo Attacking
    • L605. Can Place Flowers
    • L853. Car Fleet
    • L42. Trapping Rain Water
    • L496. Next Greater Element I
    • L300. Longest Increasing Subsequence
    • L4. Median of Two Sorted Arrays
    • L53. Maximum Subarray
      • L152. Maximum Product Subarray
    • L659. Split Array into Consecutive Subsequences
    • 1762. Buildings With an Ocean View
    • 238. Product of Array Except Self
    • 1249. Minimum Remove to Make Valid Parentheses
    • 670. Maximum Swap
    • L769. Max Chunks To Make Sorted
  • String
    • 727. Minimum Window Subsequence
    • L125. Valid Palindrome/Partition
    • L5. Longest Palindromic Substring
      • L5. Longest Palindromic Substring
    • L67. Add Binary
    • L20. Valid Parentheses
    • L91 Decode Ways
    • L168. Excel Sheet Column Title
    • L28. Implement strStr()
    • L621. Task Scheduler
    • L340. Longest Substring with At Most K Distinct Characters
    • *L157. Read N Characters Given Read4
    • *L301. Remove Invalid Parentheses
    • L266. Palindrome Permutation
    • L389. Find the Difference
    • L344. Reverse String
    • L709. To Lower Case
    • L800. Similar RGB Color
    • L293. Flip Game
    • L833. Find And Replace in String
    • *L616. Add Bold Tag in String
    • *L358. Rearrange String k Distance Apart
    • L916. Word Subsets
    • L392. Is Subsequence
    • L792. Number of Matching Subsequences
    • L205. Isomorphic Strings
    • L844. Backspace String Compare
    • Anagrams
      • L438. Find All Anagrams in a String
      • L242. Valid Anagram
      • L49. Group Anagrams
    • L567. Permutation in String
    • L249. Group Shifted Strings
    • L68. Text Justification
    • L394. Decode Strings
    • L271. Encode and Decode Strings
    • 1762. Buildings With an Ocean View
    • 71. Simplify Path
    • 408. Valid Word Abbreviation
    • 791. Custom Sort String
    • L.830. Positions of Large Groups
  • Two Pointer
    • Forward Window
    • 977. Squares of a Sorted Array
      • L277. Find the Celebrity
      • L349.Intersection of Two Arrays
      • Lint.Subarray Sum II
      • L76. Minimum Window Substring
      • L3. Longest Substring Without Repeating Characters
      • L159. Longest Substring with At Most Two Distinct Characters
      • L239. Sliding Window Maximum
      • L724. Find Pivot Index
    • L1. Two Sum
  • Graph
    • L133. Clone Graph(deep copy)
    • L399. Evaluate Division
    • L785. Is Graph Bipartite?
    • L802. Find Eventual Safe States
    • L210. Course Schedule II/topological
    • L310. Minimum Height Trees
    • L797. All Paths From Source to Target
    • L269. Alien Dictionary
    • L399. Evaluate Division
  • Trie
    • L208. Implement Trie (Prefix Tree)
    • L211. Add and Search Word - Data structure design
    • L642. Design Search Autocomplete System
    • L648. Replace Words
    • L720. Longest Word in Dictionary
  • Data Structure Design/Heap
    • L359. Logger Rate Limiter
    • L346. Moving Average from Data Stream
    • L703. Kth Largest Element in a Stream
    • L692. Top K Frequent Words
    • L778. Swim in Rising Water
    • L380. Insert Delete GetRandom O(1)
    • L676. Implement Magic Dictionary
    • L155. Min Stack
    • L251. Flatten 2D Vector
    • L146. LRU Cache
    • L460. LFU Cache
    • L307. Range Sum Query - Mutable
  • N-ary Tree
    • 559. Maximum Depth of N-ary Tree
  • Games
    • L361. Bomb Enemy
    • L292. Nim Game
  • Project Euler
    • 1.Multiples of 3 and 5
    • 2.Even Fibonacci numbers
    • 3.Largest prime factor
    • 4.Largest palindrome product
    • 5.Smallest multipliers
    • 6.
    • 7.10001st prime
  • Union-Find
    • L803. Bricks Falling When Hit
    • L547. Friend Circles
    • L323. Number of Connected Components in an Undirected Graph
    • L721. Accounts Merge
    • L959. Regions Cut By Slashes
    • L947.Most Stones Removed with Same Row or Column
    • L684. Redundant Connection
    • L261. Graph Valid Tree
    • L765. Couples Holding Hands
    • L130. Surrounded Regions
    • L737. Sentence Similarity II
    • L839. Similar String Groups
    • L924. Minimize Malware Spread
  • mianjing
    • byted
      • Untitled
    • Gintern
    • Other
      • L274. H-Index
      • L349. Intersection of Two Arrays I &&II
      • Day 2
        • L660. Remove 9
      • L38. Count and Say
      • L252. Meeting Rooms
      • L760. Find Anagram Mappings
      • L657. Judge Route Circle
      • L771.Jewels and Stones
      • L804. Unique Morse Code Words
      • L292. Nim Game
    • Robot related
      • L361. Bomb Enemy
      • L489. Robot Room Cleaner扫地机器人
      • 机器人左上到右上
    • G onsite
      • Top left to top right
      • L767. Reorganize String
      • A-B,C-D
      • L205. Isomorphic Strings
      • L679.24 Games
      • 人与车
      • L358. Rearrange String k Distance Apart
      • L465. Optimal Account Balancing
      • L844. Backspace String Compare
      • L750. Number Of Corner Rectangles
      • 巧克力甜度/410Split Array Largest Sum/1011
      • L1011. Capacity To Ship Packages Within D Days
      • 王位继承
      • 骰子拼字
      • 下雨路湿
      • L有向图最短Cycle
      • 二分找不到的数
      • 数组公共数集
      • 二叉树上的占领游戏
      • 二叉树删除边
      • 二叉树删一些node,变成森林
      • 矩阵中两元素最小曼哈顿距离
      • 21点游戏
      • 支持存活时间的HashMap
      • 可删除字母,需要多少次构造
      • 围棋
      • 骰子互换
      • L857. Minimum Cost to Hire K Workers雇工人
      • L843. Guess the Word
      • L890. Find and Replace Pattern
      • L855. Exam Room
      • L659. Split Array into Consecutive Subsequences
      • LL815. Bus Routes
      • generate maze生成迷宫
      • 可乐饮料机
      • 计算器类
      • 平分平面上的点
      • 浇花的步数
      • L497. Random Point in Non-overlapping Rectangles
      • L947. Most Stones Removed with Same Row or Column
      • 亲戚
      • L621 Task Scheduler
      • 合并email
      • Accouting balanceing
      • L809. Expressive Words
      • L911. Online Election
      • L1146. Snapshot Array
      • 不均匀硬币
      • L874. Walking Robot Simulation
      • Lint1368. Same Number
    • F
    • walmart
    • System Design
    • L817. Linked List Components
    • OPPO
    • Zoox
  • Image related
    • L832. Flipping an Image
    • L766. Toeplitz Matrix
    • L422. Valid Word Square
    • Interpolation
    • L48. Rotate Image
  • Hashtable
    • L299. Bulls and Cows
    • L219. Contains Duplicate II
    • L953. Verifying an Alien Dictionary
  • Heap
    • L703. Kth Largest Element in a Stream
  • Python basic
  • Pony
    • Page 1
    • 1838. Frequency of the Most Frequent Element
    • 958. Check Completeness of a Binary Tree
    • 386. Lexicographical Numbers
  • Dropbox
    • 289. Game of Life
    • 362. Design Hit Counter
    • Download File / BitTorrent
    • Web Crawler
    • Token Bucket
    • Search the DOM
    • Space Panorama
    • Phone Number / Dictionary
    • Sharpness Value
    • Find Byte Pattern in a File
    • Number of Islands
    • Find Duplicate Files
    • Id Allocator
    • Top k photo
    • 38. Count and Say
    • Combination Sum
  • Cpp basic
  • ML/DL/CV
    • PR-AUC
    • Resnet Block
    • Imbalanced data
    • Optimizer
    • Batch Normalization
    • Kmeans/KNN
    • Rotation 2D/3D obejct
    • Conv2d/ MLP
    • ML 八股文
    • 未知分类
    • Non-Maximum suppression
Powered by GitBook
On this page
  • L307. Range Sum Query - Mutable
  • L308.Range Sum Query 2D - Mutable

Was this helpful?

  1. Data Structure Design/Heap

L307. Range Sum Query - Mutable

L307. Range Sum Query - Mutable

L308.Range Sum Query 2D - Mutable

PreviousL460. LFU CacheNextN-ary Tree

Last updated 4 years ago

Was this helpful?