akhilkammila / leetcode-screenshotter

screenshots leetcode editorials and problems
MIT License
487 stars 179 forks source link

Leetcode Screenshotter

Screenshots of Leetcode Editorials and Premium Problems

Table of Contents

Editorials

Leetcode Editorials are in-depth articles which explain how to approach and solve a problem. About 50% of problems have editorials. They are premium-only.

Open the below links in a new tab with CNTRL + Click or COMMAND + Click

Editorial code is available under the editorial_code folder of the project (credit to @raghavrambo007)

1. Two Sum

2. Add Two Numbers

3. Longest Substring Without Repeating Characters

5. Longest Palindromic Substring

6. Zigzag Conversion

7. Reverse Integer

8. String to Integer (atoi)

9. Palindrome Number

10. Regular Expression Matching

11. Container With Most Water

12. Integer to Roman

13. Roman to Integer

14. Longest Common Prefix

15. 3Sum

16. 3Sum Closest

17. Letter Combinations of a Phone Number

18. 4Sum

19. Remove Nth Node From End of List

20. Valid Parentheses

21. Merge Two Sorted Lists

22. Generate Parentheses

23. Merge k Sorted Lists

24. Swap Nodes in Pairs

25. Reverse Nodes in k-Group

26. Remove Duplicates from Sorted Array

27. Remove Element

28. Find the Index of the First Occurrence in a String

29. Divide Two Integers

30. Substring with Concatenation of All Words

31. Next Permutation

32. Longest Valid Parentheses

33. Search in Rotated Sorted Array

34. Find First and Last Position of Element in Sorted Array

35. Search Insert Position

36. Valid Sudoku

37. Sudoku Solver

38. Count and Say

39. Combination Sum

40. Combination Sum II

41. First Missing Positive

42. Trapping Rain Water

43. Multiply Strings

44. Wildcard Matching

45. Jump Game II

46. Permutations

47. Permutations II

48. Rotate Image

49. Group Anagrams

50. Pow(x, n)

51. N-Queens

52. N-Queens II

53. Maximum Subarray

54. Spiral Matrix

55. Jump Game

56. Merge Intervals

57. Insert Interval

58. Length of Last Word

59. Spiral Matrix II

60. Permutation Sequence

61. Rotate List

62. Unique Paths

63. Unique Paths II

64. Minimum Path Sum

65. Valid Number

66. Plus One

67. Add Binary

68. Text Justification

69. Sqrt(x)

70. Climbing Stairs

71. Simplify Path

72. Edit Distance

73. Set Matrix Zeroes

74. Search a 2D Matrix

75. Sort Colors

76. Minimum Window Substring

77. Combinations

78. Subsets

79. Word Search

80. Remove Duplicates from Sorted Array II

81. Search in Rotated Sorted Array II

82. Remove Duplicates from Sorted List II

83. Remove Duplicates from Sorted List

84. Largest Rectangle in Histogram

85. Maximal Rectangle

86. Partition List

87. Scramble String

88. Merge Sorted Array

89. Gray Code

90. Subsets II

91. Decode Ways

92. Reverse Linked List II

93. Restore IP Addresses

94. Binary Tree Inorder Traversal

95. Unique Binary Search Trees II

96. Unique Binary Search Trees

97. Interleaving String

98. Validate Binary Search Tree

99. Recover Binary Search Tree

100. Same Tree

101. Symmetric Tree

102. Binary Tree Level Order Traversal

103. Binary Tree Zigzag Level Order Traversal

104. Maximum Depth of Binary Tree

105. Construct Binary Tree from Preorder and Inorder Traversal

106. Construct Binary Tree from Inorder and Postorder Traversal

107. Binary Tree Level Order Traversal II

108. Convert Sorted Array to Binary Search Tree

109. Convert Sorted List to Binary Search Tree

110. Balanced Binary Tree

111. Minimum Depth of Binary Tree

112. Path Sum

113. Path Sum II

114. Flatten Binary Tree to Linked List

115. Distinct Subsequences

116. Populating Next Right Pointers in Each Node

117. Populating Next Right Pointers in Each Node II

118. Pascal's Triangle

119. Pascal's Triangle II

120. Triangle

121. Best Time to Buy and Sell Stock

122. Best Time to Buy and Sell Stock II

123. Best Time to Buy and Sell Stock III

124. Binary Tree Maximum Path Sum

125. Valid Palindrome

126. Word Ladder II

127. Word Ladder

128. Longest Consecutive Sequence

129. Sum Root to Leaf Numbers

130. Surrounded Regions

131. Palindrome Partitioning

132. Palindrome Partitioning II

133. Clone Graph

135. Candy

136. Single Number

137. Single Number II

138. Copy List with Random Pointer

139. Word Break

140. Word Break II

141. Linked List Cycle

142. Linked List Cycle II

143. Reorder List

144. Binary Tree Preorder Traversal

146. LRU Cache

147. Insertion Sort List

148. Sort List

149. Max Points on a Line

150. Evaluate Reverse Polish Notation

151. Reverse Words in a String

152. Maximum Product Subarray

153. Find Minimum in Rotated Sorted Array

154. Find Minimum in Rotated Sorted Array II

155. Min Stack

157. Read N Characters Given Read4

159. Longest Substring with At Most Two Distinct Characters

160. Intersection of Two Linked Lists

161. One Edit Distance

162. Find Peak Element

163. Missing Ranges

164. Maximum Gap

165. Compare Version Numbers

166. Fraction to Recurring Decimal

167. Two Sum II - Input Array Is Sorted

169. Majority Element

170. Two Sum III - Data structure design

171. Excel Sheet Column Number

172. Factorial Trailing Zeroes

173. Binary Search Tree Iterator

174. Dungeon Game

179. Largest Number

186. Reverse Words in a String II

187. Repeated DNA Sequences

188. Best Time to Buy and Sell Stock IV

189. Rotate Array

190. Reverse Bits

191. Number of 1 Bits

198. House Robber

199. Binary Tree Right Side View

200. Number of Islands

201. Bitwise AND of Numbers Range

202. Happy Number

203. Remove Linked List Elements

204. Count Primes

205. Isomorphic Strings

206. Reverse Linked List

207. Course Schedule

208. Implement Trie (Prefix Tree)

209. Minimum Size Subarray Sum

210. Course Schedule II

211. Design Add and Search Words Data Structure

212. Word Search II

213. House Robber II

214. Shortest Palindrome

215. Kth Largest Element in an Array

216. Combination Sum III

217. Contains Duplicate

218. The Skyline Problem

219. Contains Duplicate II

220. Contains Duplicate III

221. Maximal Square

222. Count Complete Tree Nodes

223. Rectangle Area

224. Basic Calculator

225. Implement Stack using Queues

226. Invert Binary Tree

227. Basic Calculator II

228. Summary Ranges

229. Majority Element II

230. Kth Smallest Element in a BST

231. Power of Two

232. Implement Queue using Stacks

233. Number of Digit One

234. Palindrome Linked List

235. Lowest Common Ancestor of a Binary Search Tree

236. Lowest Common Ancestor of a Binary Tree

237. Delete Node in a Linked List

238. Product of Array Except Self

239. Sliding Window Maximum

240. Search a 2D Matrix II

242. Valid Anagram

243. Shortest Word Distance

244. Shortest Word Distance II

245. Shortest Word Distance III

246. Strobogrammatic Number

247. Strobogrammatic Number II

249. Group Shifted Strings

250. Count Univalue Subtrees

251. Flatten 2D Vector

252. Meeting Rooms

253. Meeting Rooms II

254. Factor Combinations

256. Paint House

257. Binary Tree Paths

258. Add Digits

259. 3Sum Smaller

260. Single Number III

261. Graph Valid Tree

263. Ugly Number

265. Paint House II

266. Palindrome Permutation

267. Palindrome Permutation II

268. Missing Number

269. Alien Dictionary

270. Closest Binary Search Tree Value

271. Encode and Decode Strings

272. Closest Binary Search Tree Value II

273. Integer to English Words

274. H-Index

275. H-Index II

276. Paint Fence

277. Find the Celebrity

278. First Bad Version

279. Perfect Squares

280. Wiggle Sort

281. Zigzag Iterator

282. Expression Add Operators

283. Move Zeroes

284. Peeking Iterator

285. Inorder Successor in BST

286. Walls and Gates

287. Find the Duplicate Number

289. Game of Life

290. Word Pattern

292. Nim Game

295. Find Median from Data Stream

296. Best Meeting Point

297. Serialize and Deserialize Binary Tree

298. Binary Tree Longest Consecutive Sequence

299. Bulls and Cows

300. Longest Increasing Subsequence

301. Remove Invalid Parentheses

302. Smallest Rectangle Enclosing Black Pixels

303. Range Sum Query - Immutable

304. Range Sum Query 2D - Immutable

305. Number of Islands II

307. Range Sum Query - Mutable

308. Range Sum Query 2D - Mutable

309. Best Time to Buy and Sell Stock with Cooldown

310. Minimum Height Trees

311. Sparse Matrix Multiplication

312. Burst Balloons

314. Binary Tree Vertical Order Traversal

315. Count of Smaller Numbers After Self

316. Remove Duplicate Letters

317. Shortest Distance from All Buildings

318. Maximum Product of Word Lengths

319. Bulb Switcher

320. Generalized Abbreviation

322. Coin Change

323. Number of Connected Components in an Undirected Graph

325. Maximum Size Subarray Sum Equals k

326. Power of Three

328. Odd Even Linked List

329. Longest Increasing Path in a Matrix

330. Patching Array

331. Verify Preorder Serialization of a Binary Tree

332. Reconstruct Itinerary

333. Largest BST Subtree

334. Increasing Triplet Subsequence

336. Palindrome Pairs

337. House Robber III

338. Counting Bits

339. Nested List Weight Sum

340. Longest Substring with At Most K Distinct Characters

341. Flatten Nested List Iterator

342. Power of Four

344. Reverse String

345. Reverse Vowels of a String

346. Moving Average from Data Stream

347. Top K Frequent Elements

348. Design Tic-Tac-Toe

349. Intersection of Two Arrays

350. Intersection of Two Arrays II

352. Data Stream as Disjoint Intervals

353. Design Snake Game

354. Russian Doll Envelopes

359. Logger Rate Limiter

360. Sort Transformed Array

361. Bomb Enemy

362. Design Hit Counter

363. Max Sum of Rectangle No Larger Than K

364. Nested List Weight Sum II

366. Find Leaves of Binary Tree

367. Valid Perfect Square

368. Largest Divisible Subset

369. Plus One Linked List

370. Range Addition

371. Sum of Two Integers

373. Find K Pairs with Smallest Sums

374. Guess Number Higher or Lower

376. Wiggle Subsequence

377. Combination Sum IV

378. Kth Smallest Element in a Sorted Matrix

380. Insert Delete GetRandom O(1)

381. Insert Delete GetRandom O(1) - Duplicates allowed

382. Linked List Random Node

383. Ransom Note

384. Shuffle an Array

387. First Unique Character in a String

389. Find the Difference

392. Is Subsequence

393. UTF-8 Validation

394. Decode String

395. Longest Substring with At Least K Repeating Characters

398. Random Pick Index

399. Evaluate Division

402. Remove K Digits

403. Frog Jump

404. Sum of Left Leaves

406. Queue Reconstruction by Height

409. Longest Palindrome

410. Split Array Largest Sum

412. Fizz Buzz

413. Arithmetic Slices

414. Third Maximum Number

415. Add Strings

416. Partition Equal Subset Sum

417. Pacific Atlantic Water Flow

421. Maximum XOR of Two Numbers in an Array

422. Valid Word Square

423. Reconstruct Original Digits from English

424. Longest Repeating Character Replacement

425. Word Squares

426. Convert Binary Search Tree to Sorted Doubly Linked List

427. Construct Quad Tree

428. Serialize and Deserialize N-ary Tree

429. N-ary Tree Level Order Traversal

430. Flatten a Multilevel Doubly Linked List

431. Encode N-ary Tree to Binary Tree

433. Minimum Genetic Mutation

434. Number of Segments in a String

435. Non-overlapping Intervals

436. Find Right Interval

437. Path Sum III

438. Find All Anagrams in a String

439. Ternary Expression Parser

441. Arranging Coins

442. Find All Duplicates in an Array

443. String Compression

445. Add Two Numbers II

446. Arithmetic Slices II - Subsequence

448. Find All Numbers Disappeared in an Array

449. Serialize and Deserialize BST

450. Delete Node in a BST

451. Sort Characters By Frequency

452. Minimum Number of Arrows to Burst Balloons

453. Minimum Moves to Equal Array Elements

454. 4Sum II

456. 132 Pattern

458. Poor Pigs

460. LFU Cache

461. Hamming Distance

462. Minimum Moves to Equal Array Elements II

463. Island Perimeter

466. Count The Repetitions

468. Validate IP Address

[470. Implement Rand10() Using Rand7()](https://github.com/akhilkammila/leetcode-screenshotter/tree/main/editorial-screenshots/1-999/470.%20Implement%20Rand10()%20Using%20Rand7().png)

472. Concatenated Words

473. Matchsticks to Square

474. Ones and Zeroes

476. Number Complement

477. Total Hamming Distance

478. Generate Random Point in a Circle

480. Sliding Window Median

482. License Key Formatting

484. Find Permutation

485. Max Consecutive Ones

486. Predict the Winner

487. Max Consecutive Ones II

489. Robot Room Cleaner

490. The Maze

491. Non-decreasing Subsequences

494. Target Sum

495. Teemo Attacking

496. Next Greater Element I

498. Diagonal Traverse

502. IPO

503. Next Greater Element II

505. The Maze II

507. Perfect Number

508. Most Frequent Subtree Sum

509. Fibonacci Number

510. Inorder Successor in BST II

516. Longest Palindromic Subsequence

518. Coin Change II

520. Detect Capital

521. Longest Uncommon Subsequence I

522. Longest Uncommon Subsequence II

523. Continuous Subarray Sum

524. Longest Word in Dictionary through Deleting

525. Contiguous Array

526. Beautiful Arrangement

527. Word Abbreviation

528. Random Pick with Weight

530. Minimum Absolute Difference in BST

531. Lonely Pixel I

532. K-diff Pairs in an Array

535. Encode and Decode TinyURL

536. Construct Binary Tree from String

537. Complex Number Multiplication

538. Convert BST to Greater Tree

540. Single Element in a Sorted Array

541. Reverse String II

542. 01 Matrix

543. Diameter of Binary Tree

545. Boundary of Binary Tree

546. Remove Boxes

547. Number of Provinces

548. Split Array with Equal Sum

549. Binary Tree Longest Consecutive Sequence II

551. Student Attendance Record I

552. Student Attendance Record II

553. Optimal Division

554. Brick Wall

556. Next Greater Element III

557. Reverse Words in a String III

559. Maximum Depth of N-ary Tree

560. Subarray Sum Equals K

561. Array Partition

562. Longest Line of Consecutive One in Matrix

563. Binary Tree Tilt

565. Array Nesting

566. Reshape the Matrix

567. Permutation in String

568. Maximum Vacation Days

572. Subtree of Another Tree

573. Squirrel Simulation

575. Distribute Candies

576. Out of Boundary Paths

581. Shortest Unsorted Continuous Subarray

582. Kill Process

583. Delete Operation for Two Strings

587. Erect the Fence

588. Design In-Memory File System

589. N-ary Tree Preorder Traversal

590. N-ary Tree Postorder Traversal

591. Tag Validator

592. Fraction Addition and Subtraction

593. Valid Square

594. Longest Harmonious Subsequence

598. Range Addition II

599. Minimum Index Sum of Two Lists

600. Non-negative Integers without Consecutive Ones

604. Design Compressed String Iterator

605. Can Place Flowers

606. Construct String from Binary Tree

609. Find Duplicate File in System

611. Valid Triangle Number

616. Add Bold Tag in String

617. Merge Two Binary Trees

621. Task Scheduler

622. Design Circular Queue

623. Add One Row to Tree

624. Maximum Distance in Arrays

625. Minimum Factorization

628. Maximum Product of Three Numbers

629. K Inverse Pairs Array

630. Course Schedule III

631. Design Excel Sum Formula

632. Smallest Range Covering Elements from K Lists

633. Sum of Square Numbers

634. Find the Derangement of An Array

635. Design Log Storage System

637. Average of Levels in Binary Tree

638. Shopping Offers

639. Decode Ways II

640. Solve the Equation

643. Maximum Average Subarray I

644. Maximum Average Subarray II

645. Set Mismatch

646. Maximum Length of Pair Chain

647. Palindromic Substrings

648. Replace Words

649. Dota2 Senate

650. 2 Keys Keyboard

651. 4 Keys Keyboard

652. Find Duplicate Subtrees

653. Two Sum IV - Input is a BST

654. Maximum Binary Tree

656. Coin Path

657. Robot Return to Origin

658. Find K Closest Elements

659. Split Array into Consecutive Subsequences

660. Remove 9

662. Maximum Width of Binary Tree

663. Equal Tree Partition

664. Strange Printer

665. Non-decreasing Array

666. Path Sum IV

667. Beautiful Arrangement II

668. Kth Smallest Number in Multiplication Table

669. Trim a Binary Search Tree

671. Second Minimum Node In a Binary Tree

673. Number of Longest Increasing Subsequence

674. Longest Continuous Increasing Subsequence

677. Map Sum Pairs

678. Valid Parenthesis String

679. 24 Game

680. Valid Palindrome II

682. Baseball Game

684. Redundant Connection

687. Longest Univalue Path

688. Knight Probability in Chessboard

689. Maximum Sum of 3 Non-Overlapping Subarrays

690. Employee Importance

692. Top K Frequent Words

693. Binary Number with Alternating Bits

694. Number of Distinct Islands

695. Max Area of Island

696. Count Binary Substrings

697. Degree of an Array

698. Partition to K Equal Sum Subsets

699. Falling Squares

700. Search in a Binary Search Tree

701. Insert into a Binary Search Tree

702. Search in a Sorted Array of Unknown Size

703. Kth Largest Element in a Stream

704. Binary Search

705. Design HashSet

706. Design HashMap

707. Design Linked List

708. Insert into a Sorted Circular Linked List

709. To Lower Case

710. Random Pick with Blacklist

712. Minimum ASCII Delete Sum for Two Strings

713. Subarray Product Less Than K

714. Best Time to Buy and Sell Stock with Transaction Fee

716. Max Stack

718. Maximum Length of Repeated Subarray

719. Find K-th Smallest Pair Distance

720. Longest Word in Dictionary

721. Accounts Merge

723. Candy Crush

724. Find Pivot Index

725. Split Linked List in Parts

726. Number of Atoms

727. Minimum Window Subsequence

728. Self Dividing Numbers

729. My Calendar I

731. My Calendar II

732. My Calendar III

733. Flood Fill

734. Sentence Similarity

735. Asteroid Collision

737. Sentence Similarity II

739. Daily Temperatures

740. Delete and Earn

741. Cherry Pickup

742. Closest Leaf in a Binary Tree

743. Network Delay Time

744. Find Smallest Letter Greater Than Target

745. Prefix and Suffix Search

746. Min Cost Climbing Stairs

750. Number Of Corner Rectangles

752. Open the Lock

754. Reach a Number

760. Find Anagram Mappings

761. Special Binary String

763. Partition Labels

764. Largest Plus Sign

765. Couples Holding Hands

766. Toeplitz Matrix

771. Jewels and Stones

774. Minimize Max Distance to Gas Station

775. Global and Local Inversions

776. Split BST

778. Swim in Rising Water

780. Reaching Points

781. Rabbits in Forest

782. Transform to Chessboard

783. Minimum Distance Between BST Nodes

784. Letter Case Permutation

785. Is Graph Bipartite?

786. K-th Smallest Prime Fraction

787. Cheapest Flights Within K Stops

789. Escape The Ghosts

790. Domino and Tromino Tiling

791. Custom Sort String

792. Number of Matching Subsequences

793. Preimage Size of Factorial Zeroes Function

795. Number of Subarrays with Bounded Maximum

796. Rotate String

797. All Paths From Source to Target

798. Smallest Rotation with Highest Score

799. Champagne Tower

800. Similar RGB Color

802. Find Eventual Safe States

803. Bricks Falling When Hit

804. Unique Morse Code Words

806. Number of Lines To Write String

807. Max Increase to Keep City Skyline

808. Soup Servings

810. Chalkboard XOR Game

811. Subdomain Visit Count

813. Largest Sum of Averages

814. Binary Tree Pruning

815. Bus Routes

816. Ambiguous Coordinates

819. Most Common Word

820. Short Encoding of Words

821. Shortest Distance to a Character

823. Binary Trees With Factors

826. Most Profit Assigning Work

827. Making A Large Island

829. Consecutive Numbers Sum

830. Positions of Large Groups

832. Flipping an Image

834. Sum of Distances in Tree

835. Image Overlap

836. Rectangle Overlap

837. New 21 Game

838. Push Dominoes

839. Similar String Groups

841. Keys and Rooms

842. Split Array into Fibonacci Sequence

844. Backspace String Compare

845. Longest Mountain in Array

847. Shortest Path Visiting All Nodes

848. Shifting Letters

849. Maximize Distance to Closest Person

850. Rectangle Area II

851. Loud and Rich

852. Peak Index in a Mountain Array

856. Score of Parentheses

857. Minimum Cost to Hire K Workers

859. Buddy Strings

860. Lemonade Change

862. Shortest Subarray with Sum at Least K

863. All Nodes Distance K in Binary Tree

864. Shortest Path to Get All Keys

865. Smallest Subtree with all the Deepest Nodes

866. Prime Palindrome

867. Transpose Matrix

868. Binary Gap

869. Reordered Power of 2

870. Advantage Shuffle

871. Minimum Number of Refueling Stops

872. Leaf-Similar Trees

873. Length of Longest Fibonacci Subsequence

875. Koko Eating Bananas

876. Middle of the Linked List

877. Stone Game

878. Nth Magical Number

879. Profitable Schemes

880. Decoded String at Index

881. Boats to Save People

882. Reachable Nodes In Subdivided Graph

883. Projection Area of 3D Shapes

884. Uncommon Words from Two Sentences

885. Spiral Matrix III

886. Possible Bipartition

887. Super Egg Drop

888. Fair Candy Swap

890. Find and Replace Pattern

891. Sum of Subsequence Widths

894. All Possible Full Binary Trees

895. Maximum Frequency Stack

896. Monotonic Array

897. Increasing Order Search Tree

899. Orderly Queue

901. Online Stock Span

902. Numbers At Most N Given Digit Set

904. Fruit Into Baskets

905. Sort Array By Parity

906. Super Palindromes

907. Sum of Subarray Minimums

909. Snakes and Ladders

910. Smallest Range II

911. Online Election

912. Sort an Array

913. Cat and Mouse

914. X of a Kind in a Deck of Cards

915. Partition Array into Disjoint Intervals

916. Word Subsets

917. Reverse Only Letters

918. Maximum Sum Circular Subarray

919. Complete Binary Tree Inserter

920. Number of Music Playlists

921. Minimum Add to Make Parentheses Valid

922. Sort Array By Parity II

923. 3Sum With Multiplicity

924. Minimize Malware Spread

926. Flip String to Monotone Increasing

927. Three Equal Parts

928. Minimize Malware Spread II

929. Unique Email Addresses

930. Binary Subarrays With Sum

931. Minimum Falling Path Sum

932. Beautiful Array

933. Number of Recent Calls

934. Shortest Bridge

936. Stamping The Sequence

937. Reorder Data in Log Files

938. Range Sum of BST

940. Distinct Subsequences II

941. Valid Mountain Array

942. DI String Match

943. Find the Shortest Superstring

944. Delete Columns to Make Sorted

945. Minimum Increment to Make Array Unique

946. Validate Stack Sequences

947. Most Stones Removed with Same Row or Column

948. Bag of Tokens

949. Largest Time for Given Digits

950. Reveal Cards In Increasing Order

951. Flip Equivalent Binary Trees

952. Largest Component Size by Common Factor

953. Verifying an Alien Dictionary

954. Array of Doubled Pairs

956. Tallest Billboard

957. Prison Cells After N Days

958. Check Completeness of a Binary Tree

959. Regions Cut By Slashes

960. Delete Columns to Make Sorted III

961. N-Repeated Element in Size 2N Array

965. Univalued Binary Tree

966. Vowel Spellchecker

967. Numbers With Same Consecutive Differences

968. Binary Tree Cameras

969. Pancake Sorting

970. Powerful Integers

971. Flip Binary Tree To Match Preorder Traversal

972. Equal Rational Numbers

973. K Closest Points to Origin

974. Subarray Sums Divisible by K

976. Largest Perimeter Triangle

977. Squares of a Sorted Array

978. Longest Turbulent Subarray

979. Distribute Coins in Binary Tree

980. Unique Paths III

981. Time Based Key-Value Store

983. Minimum Cost For Tickets

984. String Without AAA or BBB

985. Sum of Even Numbers After Queries

986. Interval List Intersections

987. Vertical Order Traversal of a Binary Tree

988. Smallest String Starting From Leaf

989. Add to Array-Form of Integer

990. Satisfiability of Equality Equations

991. Broken Calculator

993. Cousins in Binary Tree

994. Rotting Oranges

997. Find the Town Judge

1004. Max Consecutive Ones III

1007. Minimum Domino Rotations For Equal Row

1008. Construct Binary Search Tree from Preorder Traversal

1009. Complement of Base 10 Integer

1010. Pairs of Songs With Total Durations Divisible by 60

1011. Capacity To Ship Packages Within D Days

1015. Smallest Integer Divisible by K

1019. Next Greater Node In Linked List

1020. Number of Enclaves

1022. Sum of Root To Leaf Binary Numbers

1026. Maximum Difference Between Node and Ancestor

1027. Longest Arithmetic Subsequence

1029. Two City Scheduling

1032. Stream of Characters

1035. Uncrossed Lines

1041. Robot Bounded In Circle

1044. Longest Duplicate Substring

1046. Last Stone Weight

1047. Remove All Adjacent Duplicates In String

1048. Longest String Chain

1055. Shortest Way to Form String

1056. Confusing Number

1057. Campus Bikes

1059. All Paths from Source Lead to Destination

1060. Missing Element in Sorted Array

1061. Lexicographically Smallest Equivalent String

1062. Longest Repeating Substring

1064. Fixed Point

1065. Index Pairs of a String

1066. Campus Bikes II

1071. Greatest Common Divisor of Strings

1074. Number of Submatrices That Sum to Target

1086. High Five

1087. Brace Expansion

1088. Confusing Number II

1089. Duplicate Zeros

1091. Shortest Path in Binary Matrix

1094. Car Pooling

1099. Two Sum Less Than K

1100. Find K-Length Substrings With No Repeated Characters

1101. The Earliest Moment When Everyone Become Friends

1102. Path With Maximum Minimum Value

1120. Maximum Average Subtree

1125. Smallest Sufficient Team

1129. Shortest Path with Alternating Colors

1133. Largest Unique Number

1134. Armstrong Number

1135. Connecting Cities With Minimum Cost

1136. Parallel Courses

1137. N-th Tribonacci Number

1140. Stone Game II

1143. Longest Common Subsequence

1146. Snapshot Array

1150. Check If a Number Is Majority Element in a Sorted Array

1151. Minimum Swaps to Group All 1's Together

1153. String Transforms Into Another String

1155. Number of Dice Rolls With Target Sum

1161. Maximum Level Sum of a Binary Tree

1162. As Far from Land as Possible

1165. Single-Row Keyboard

1166. Design File System

1167. Minimum Cost to Connect Sticks

1168. Optimize Water Distribution in a Village

1178. Number of Valid Words for Each Puzzle

1180. Count Substrings with Only One Distinct Letter

1182. Shortest Distance to Target Color

1187. Make Array Strictly Increasing

1189. Maximum Number of Balloons

1192. Critical Connections in a Network

1196. How Many Apples Can You Put into the Basket

1197. Minimum Knight Moves

1198. Find Smallest Common Element in All Rows

1200. Minimum Absolute Difference

1202. Smallest String With Swaps

1207. Unique Number of Occurrences

1209. Remove All Adjacent Duplicates in String II

1213. Intersection of Three Sorted Arrays

1214. Two Sum BSTs

1216. Valid Palindrome III

1217. Minimum Cost to Move Chips to The Same Position

1218. Longest Arithmetic Subsequence of Given Difference

1220. Count Vowels Permutation

1228. Missing Number In Arithmetic Progression

1229. Meeting Scheduler

1230. Toss Strange Coins

1231. Divide Chocolate

1232. Check If It Is a Straight Line

1235. Maximum Profit in Job Scheduling

1236. Web Crawler

1239. Maximum Length of a Concatenated String with Unique Characters

1244. Design A Leaderboard

1245. Tree Diameter

1249. Minimum Remove to Make Valid Parentheses

1254. Number of Closed Islands

1259. Handshakes That Don't Cross

1260. Shift 2D Grid

1268. Search Suggestions System

1272. Remove Interval

1274. Number of Ships in a Rectangle

1275. Find Winner on a Tic Tac Toe Game

1283. Find the Smallest Divisor Given a Threshold

1284. Minimum Number of Flips to Convert Binary Matrix to Zero Matrix

1286. Iterator for Combination

1288. Remove Covered Intervals

1290. Convert Binary Number in a Linked List to Integer

1291. Sequential Digits

1293. Shortest Path in a Grid with Obstacles Elimination

1302. Deepest Leaves Sum

1305. All Elements in Two Binary Search Trees

1306. Jump Game III

1312. Minimum Insertion Steps to Make a String Palindrome

1318. Minimum Flips to Make a OR b Equal to c

1319. Number of Operations to Make Network Connected

1323. Maximum 69 Number

1328. Break a Palindrome

1329. Sort the Matrix Diagonally

1332. Remove Palindromic Subsequences

1335. Minimum Difficulty of a Job Schedule

1337. The K Weakest Rows in a Matrix

1338. Reduce Array Size to The Half

1339. Maximum Product of Splitted Binary Tree

1342. Number of Steps to Reduce a Number to Zero

1344. Angle Between Hands of a Clock

1345. Jump Game IV

1351. Count Negative Numbers in a Sorted Matrix

1354. Construct Target Array With Multiple Sums

1359. Count All Valid Pickup and Delivery Options

1372. Longest ZigZag Path in a Binary Tree

1376. Time Needed to Inform All Employees

1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree

1383. Maximum Performance of a Team

1394. Find Lucky Integer in an Array

1396. Design Underground System

1402. Reducing Dishes

1406. Stone Game III

1413. Minimum Value to Get Positive Step by Step Sum

1416. Restore The Array

1423. Maximum Points You Can Obtain from Cards

1426. Counting Elements

1427. Perform String Shifts

1428. Leftmost Column with at Least a One

1429. First Unique Number

1431. Kids With the Greatest Number of Candies

1437. Check If All 1's Are at Least Length K Places Away

1443. Minimum Time to Collect All Apples in a Tree

1444. Number of Ways of Cutting a Pizza

1446. Consecutive Characters

1448. Count Good Nodes in Binary Tree

1456. Maximum Number of Vowels in a Substring of Given Length

1457. Pseudo-Palindromic Paths in a Binary Tree

1461. Check If a String Contains All Binary Codes of Size K

1463. Cherry Pickup II

1465. Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts

1466. Reorder Routes to Make All Paths Lead to the City Zero

1470. Shuffle the Array

1472. Design Browser History

1473. Paint House III

1474. Delete N Nodes After M Nodes of a Linked List

1480. Running Sum of 1d Array

1485. Clone Binary Tree With Random Pointer

1490. Clone N-ary Tree

1491. Average Salary Excluding the Minimum and Maximum Salary

1492. The kth Factor of n

1493. Longest Subarray of 1's After Deleting One Element

1498. Number of Subsequences That Satisfy the Given Sum Condition

1502. Can Make Arithmetic Progression From Sequence

1506. Find Root of N-Ary Tree

1510. Stone Game IV

1514. Path with Maximum Probability

1519. Number of Nodes in the Sub-Tree With the Same Label

1522. Diameter of N-Ary Tree

1523. Count Odd Numbers in an Interval Range

1531. String Compression II

1533. Find the Index of the Large Integer

1538. Guess the Majority in a Hidden Array

1539. Kth Missing Positive Number

1544. Make The String Great

1547. Minimum Cost to Cut a Stick

1548. The Most Similar Path in a Graph

1551. Minimum Operations to Make Array Equal

1557. Minimum Number of Vertices to Reach All Nodes

1564. Put Boxes Into the Warehouse I

1569. Number of Ways to Reorder Array to Get Same BST

1570. Dot Product of Two Sparse Vectors

1572. Matrix Diagonal Sum

1575. Count All Possible Routes

1578. Minimum Time to Make Rope Colorful

1579. Remove Max Number of Edges to Keep Graph Fully Traversable

1584. Min Cost to Connect All Points

1586. Binary Search Tree Iterator II

1588. Sum of All Odd Length Subarrays

1601. Maximum Number of Achievable Transfer Requests

1602. Find Nearest Right Node in Binary Tree

1603. Design Parking System

1606. Find Servers That Handled Most Number of Requests

1626. Best Team With No Conflicts

1629. Slowest Key

1631. Path With Minimum Effort

1632. Rank Transform of a Matrix

1639. Number of Ways to Form a Target String Given a Dictionary

1640. Check Array Formation Through Concatenation

1641. Count Sorted Vowel Strings

1642. Furthest Building You Can Reach

1646. Get Maximum in Generated Array

1647. Minimum Deletions to Make Character Frequencies Unique

1649. Create Sorted Array through Instructions

1657. Determine if Two Strings Are Close

1658. Minimum Operations to Reduce X to Zero

1662. Check If Two String Arrays are Equivalent

1663. Smallest String With A Given Numeric Value

1672. Richest Customer Wealth

1673. Find the Most Competitive Subsequence

1675. Minimize Deviation in Array

1679. Max Number of K-Sum Pairs

1680. Concatenation of Consecutive Binary Numbers

1689. Partitioning Into Minimum Number Of Deci-Binary Numbers

1690. Stone Game VII

1695. Maximum Erasure Value

1696. Jump Game VI

1697. Checking Existence of Edge Length Limited Paths

1704. Determine if String Halves Are Alike

1706. Where Will the Ball Fall

1710. Maximum Units on a Truck

1721. Swapping Nodes in a Linked List

1732. Find the Highest Altitude

1751. Maximum Number of Events That Can Be Attended II

1762. Buildings With an Ocean View

1768. Merge Strings Alternately

1770. Maximum Score from Performing Multiplication Operations

1799. Maximize Score After N Operations

1802. Maximum Value at a Given Index in a Bounded Array

1822. Sign of the Product of an Array

1832. Check if the Sentence Is Pangram

1833. Maximum Ice Cream Bars

1834. Single-Threaded CPU

1855. Maximum Distance Between a Pair of Values

1857. Largest Color Value in a Directed Graph

1870. Minimum Speed to Arrive on Time

1874. Minimize Product Sum of Two Arrays

1908. Game of Nim

1926. Nearest Exit from Entrance in Maze

1937. Maximum Number of Points with Cost

1962. Remove Stones to Minimize the Total

1964. Find the Longest Valid Obstacle Course at Each Position

1970. Last Day Where You Can Still Cross

1971. Find if Path Exists in Graph

1996. The Number of Weak Characters in the Game

2007. Find Original Array From Doubled Array

2024. Maximize the Confusion of an Exam

2034. Stock Price Fluctuation

2045. Second Minimum Time to Reach Destination

2090. K Radius Subarray Averages

2095. Delete the Middle Node of a Linked List

2101. Detonate the Maximum Bombs

2104. Sum of Subarray Ranges

2130. Maximum Twin Sum of a Linked List

2131. Longest Palindrome by Concatenating Two Letter Words

2136. Earliest Possible Day of Full Bloom

2140. Solving Questions With Brainpower

2141. Maximum Running Time of N Computers

2187. Minimum Time to Complete Trips

2214. Minimum Health to Beat Game

2215. Find the Difference of Two Arrays

2218. Maximum Value of K Coins From Piles

2225. Find Players With Zero or One Losses

2244. Minimum Rounds to Complete All Tasks

2246. Longest Path With Different Adjacent Characters

2256. Minimum Average Difference

2272. Substring With Largest Variance

2279. Maximum Bags With Full Capacity of Rocks

2281. Sum of Total Strength of Wizards

2300. Successful Pairs of Spells and Potions

2305. Fair Distribution of Cookies

2306. Naming a Company

2316. Count Unreachable Pairs of Nodes in an Undirected Graph

2328. Number of Increasing Paths in a Grid

2336. Smallest Number in Infinite Set

2348. Number of Zero-Filled Subarrays

2352. Equal Row and Column Pairs

2359. Find Closest Node to Given Two Nodes

2360. Longest Cycle in a Graph

2368. Reachable Nodes With Restrictions

2389. Longest Subsequence With Limited Sum

2390. Removing Stars From a String

2405. Optimal Partition of String

2421. Number of Good Paths

2439. Minimize Maximum of Array

2444. Count Subarrays With Fixed Bounds

2448. Minimum Cost to Make Array Equal

2462. Total Cost to Hire K Workers

2466. Count Ways To Build Good Strings

2477. Minimum Fuel Cost to Report to the Capital

2492. Minimum Score of a Path Between Two Cities

2542. Maximum Subsequence Score

2551. Put Marbles in Bags

2542. Maximum Subsequence Score

2551. Put Marbles in Bags

Premium Problems

[back to top]

About 10% of leetcode problem are premium-only.

Open the below links in a new tab with CNTRL + Click or COMMAND + Click.

156. Binary Tree Upside Down

157. Read N Characters Given Read4

158. Read N Characters Given read4 II - Call Multiple Times

159. Longest Substring with At Most Two Distinct Characters

161. One Edit Distance

163. Missing Ranges

170. Two Sum III - Data structure design

186. Reverse Words in a String II

243. Shortest Word Distance

244. Shortest Word Distance II

245. Shortest Word Distance III

246. Strobogrammatic Number

247. Strobogrammatic Number II

248. Strobogrammatic Number III

249. Group Shifted Strings

250. Count Univalue Subtrees

251. Flatten 2D Vector

252. Meeting Rooms

253. Meeting Rooms II

254. Factor Combinations

255. Verify Preorder Sequence in Binary Search Tree

256. Paint House

259. 3Sum Smaller

261. Graph Valid Tree

265. Paint House II

266. Palindrome Permutation

267. Palindrome Permutation II

269. Alien Dictionary

270. Closest Binary Search Tree Value

271. Encode and Decode Strings

272. Closest Binary Search Tree Value II

276. Paint Fence

277. Find the Celebrity

280. Wiggle Sort

281. Zigzag Iterator

285. Inorder Successor in BST

286. Walls and Gates

288. Unique Word Abbreviation

291. Word Pattern II

293. Flip Game

294. Flip Game II

296. Best Meeting Point

298. Binary Tree Longest Consecutive Sequence

302. Smallest Rectangle Enclosing Black Pixels

305. Number of Islands II

308. Range Sum Query 2D - Mutable

311. Sparse Matrix Multiplication

314. Binary Tree Vertical Order Traversal

317. Shortest Distance from All Buildings

320. Generalized Abbreviation

323. Number of Connected Components in an Undirected Graph

325. Maximum Size Subarray Sum Equals k

333. Largest BST Subtree

339. Nested List Weight Sum

340. Longest Substring with At Most K Distinct Characters

346. Moving Average from Data Stream

348. Design Tic-Tac-Toe

351. Android Unlock Patterns

353. Design Snake Game

356. Line Reflection

358. Rearrange String k Distance Apart

359. Logger Rate Limiter

360. Sort Transformed Array

361. Bomb Enemy

362. Design Hit Counter

364. Nested List Weight Sum II

366. Find Leaves of Binary Tree

369. Plus One Linked List

370. Range Addition

379. Design Phone Directory

408. Valid Word Abbreviation

411. Minimum Unique Word Abbreviation

418. Sentence Screen Fitting

422. Valid Word Square

425. Word Squares

426. Convert Binary Search Tree to Sorted Doubly Linked List

428. Serialize and Deserialize N-ary Tree

431. Encode N-ary Tree to Binary Tree

439. Ternary Expression Parser

444. Sequence Reconstruction

465. Optimal Account Balancing

469. Convex Polygon

471. Encode String with Shortest Length

484. Find Permutation

487. Max Consecutive Ones II

489. Robot Room Cleaner

490. The Maze

499. The Maze III

505. The Maze II

510. Inorder Successor in BST II

527. Word Abbreviation

531. Lonely Pixel I

533. Lonely Pixel II

536. Construct Binary Tree from String

544. Output Contest Matches

545. Boundary of Binary Tree

548. Split Array with Equal Sum

549. Binary Tree Longest Consecutive Sequence II

555. Split Concatenated Strings

562. Longest Line of Consecutive One in Matrix

568. Maximum Vacation Days

573. Squirrel Simulation

582. Kill Process

588. Design In-Memory File System

604. Design Compressed String Iterator

616. Add Bold Tag in String

624. Maximum Distance in Arrays

625. Minimum Factorization

631. Design Excel Sum Formula

634. Find the Derangement of An Array

635. Design Log Storage System

642. Design Search Autocomplete System

644. Maximum Average Subarray II

651. 4 Keys Keyboard

656. Coin Path

660. Remove 9

663. Equal Tree Partition

666. Path Sum IV

681. Next Closest Time

683. K Empty Slots

694. Number of Distinct Islands

702. Search in a Sorted Array of Unknown Size

708. Insert into a Sorted Circular Linked List

711. Number of Distinct Islands II

716. Max Stack

723. Candy Crush

727. Minimum Window Subsequence

734. Sentence Similarity

737. Sentence Similarity II

742. Closest Leaf in a Binary Tree

750. Number Of Corner Rectangles

751. IP to CIDR

755. Pour Water

758. Bold Words in String

759. Employee Free Time

760. Find Anagram Mappings

772. Basic Calculator III

774. Minimize Max Distance to Gas Station

776. Split BST

800. Similar RGB Color

1055. Shortest Way to Form String

1056. Confusing Number

1057. Campus Bikes

1058. Minimize Rounding Error to Meet Target

1059. All Paths from Source Lead to Destination

1060. Missing Element in Sorted Array

1062. Longest Repeating Substring

1063. Number of Valid Subarrays

1064. Fixed Point

1065. Index Pairs of a String

1066. Campus Bikes II

1067. Digit Count in Range

1085. Sum of Digits in the Minimum Number

1086. High Five

1087. Brace Expansion

1088. Confusing Number II

1099. Two Sum Less Than K

1100. Find K-Length Substrings With No Repeated Characters

1101. The Earliest Moment When Everyone Become Friends

1102. Path With Maximum Minimum Value

1118. Number of Days in a Month

1119. Remove Vowels from a String

1120. Maximum Average Subtree

1121. Divide Array Into Increasing Sequences

1133. Largest Unique Number

1134. Armstrong Number

1135. Connecting Cities With Minimum Cost

1136. Parallel Courses

1150. Check If a Number Is Majority Element in a Sorted Array

1151. Minimum Swaps to Group All 1's Together

1152. Analyze User Website Visit Pattern

1153. String Transforms Into Another String

1165. Single-Row Keyboard

1166. Design File System

1167. Minimum Cost to Connect Sticks

1168. Optimize Water Distribution in a Village

1176. Diet Plan Performance

1180. Count Substrings with Only One Distinct Letter

1181. Before and After Puzzle

1182. Shortest Distance to Target Color

1183. Maximum Number of Ones

1196. How Many Apples Can You Put into the Basket

1197. Minimum Knight Moves

1198. Find Smallest Common Element in All Rows

1199. Minimum Time to Build Blocks

1213. Intersection of Three Sorted Arrays

1214. Two Sum BSTs

1215. Stepping Numbers

1216. Valid Palindrome III

1228. Missing Number In Arithmetic Progression

1229. Meeting Scheduler

1230. Toss Strange Coins

1231. Divide Chocolate

1236. Web Crawler

1243. Array Transformation

1244. Design A Leaderboard

1245. Tree Diameter

1246. Palindrome Removal

1256. Encode Number

1257. Smallest Common Region

1258. Synonymous Sentences

1259. Handshakes That Don't Cross

1265. Print Immutable Linked List in Reverse

1271. Hexspeak

1272. Remove Interval

1273. Delete Tree Nodes

1274. Number of Ships in a Rectangle

1426. Counting Elements

1427. Perform String Shifts

1428. Leftmost Column with at Least a One

1429. First Unique Number

1430. Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree

1469. Find All The Lonely Nodes

1474. Delete N Nodes After M Nodes of a Linked List

1485. Clone Binary Tree With Random Pointer

1490. Clone N-ary Tree

1500. Design a File Sharing System

1506. Find Root of N-Ary Tree

1516. Move Sub-Tree of N-Ary Tree

1522. Diameter of N-Ary Tree

1533. Find the Index of the Large Integer

1538. Guess the Majority in a Hidden Array

1548. The Most Similar Path in a Graph

1554. Strings Differ by One Character

1564. Put Boxes Into the Warehouse I

1570. Dot Product of Two Sparse Vectors

1580. Put Boxes Into the Warehouse II

1586. Binary Search Tree Iterator II

1597. Build Binary Expression Tree From Infix Expression

1602. Find Nearest Right Node in Binary Tree

1612. Check If Two Expression Trees are Equivalent

1618. Maximum Font to Fit a Sentence in a Screen

1628. Design an Expression Tree With Evaluate Function

1634. Add Two Polynomials Represented as Linked Lists

1644. Lowest Common Ancestor of a Binary Tree II

1650. Lowest Common Ancestor of a Binary Tree III

1660. Correct a Binary Tree

1666. Change the Root of a Binary Tree

1676. Lowest Common Ancestor of a Binary Tree IV

1682. Longest Palindromic Subsequence II

1692. Count Ways to Distribute Candies

1698. Number of Distinct Substrings in a String

1708. Largest Subarray Length K

1714. Sum Of Special Evenly-Spaced Elements In Array

1724. Checking Existence of Edge Length Limited Paths II

1730. Shortest Path to Get Food

1740. Find Distance in a Binary Tree

1746. Maximum Subarray Sum After One Operation

1756. Design Most Recently Used Queue

1762. Buildings With an Ocean View

1772. Sort Features by Popularity

1778. Shortest Path in a Hidden Grid

1788. Maximize the Beauty of the Garden

1794. Count Pairs of Equal Substrings With Minimum Difference

1804. Implement Trie II (Prefix Tree)

1810. Minimum Path Cost in a Hidden Grid

1820. Maximum Number of Accepted Invitations

1826. Faulty Sensor

1836. Remove Duplicates From an Unsorted Linked List

1842. Next Palindrome Using Same Digits

1852. Distinct Numbers in Each Subarray

1858. Longest Word With All Prefixes

1868. Product of Two Run-Length Encoded Arrays

1874. Minimize Product Sum of Two Arrays

1885. Count Pairs in Two Arrays

1891. Cutting Ribbons

1902. Depth of BST Given Insertion Order

1908. Game of Nim

1918. Kth Smallest Subarray Sum

1924. Erect the Fence II

1933. Check if String Is Decomposable Into Value-Equal Substrings

1940. Longest Common Subsequence Between Sorted Arrays

1950. Maximum of Minimum Values in All Subarrays

1956. Minimum Time For K Virus Variants to Spread

1966. Binary Searchable Numbers in an Unsorted Array

1973. Count Nodes Equal to Sum of Descendants

1983. Widest Pair of Indices With Equal Range Sum

1989. Maximum Number of People That Can Be Caught in Tag

1999. Smallest Greater Multiple Made of Two Digits

2005. Subtree Removal Game with Fibonacci Tree

2015. Average Height of Buildings in Each Segment

2021. Brightest Position on Street

2031. Count Subarrays With More Ones Than Zeros

2036. Maximum Alternating Subarray Sum

2046. Sort Linked List Already Sorted Using Absolute Values

2052. Minimum Cost to Separate Sentence Into Rows

2061. Number of Spaces Cleaning Robot Cleaned

2067. Number of Equal Count Substrings

2077. Paths in Maze That Lead to Same Room

2083. Substrings That Begin and End With the Same Letter

2093. Minimum Cost to Reach City With Discounts

2098. Subsequence of Size K With the Largest Even Sum

2107. Number of Unique Flavors After Sharing K Candies

2113. Elements in Array After Removing and Replacing Elements

2123. Minimum Operations to Remove Adjacent Ones in Matrix

2128. Remove All Ones With Row and Column Flips

2137. Pour Water Between Buckets to Make Water Levels Equal

2143. Choose Numbers From Two Arrays in Range

2152. Minimum Number of Lines to Cover Points

2158. Amount of New Area Painted Each Day

2168. Unique Substrings With Equal Digit Frequency

2174. Remove All Ones With Row and Column Flips II

2184. Number of Ways to Build Sturdy Brick Wall

2189. Number of Ways to Build House of Cards

2198. Number of Single Divisor Triplets

2204. Distance to a Cycle in Undirected Graph

2214. Minimum Health to Beat Game

2219. Maximum Sum Score of Array

2229. Check if an Array Is Consecutive

2237. Count Positions on Street With Required Brightness

2247. Maximum Cost of Trip With K Highways

2254. Design Video Sharing Platform

2263. Make Array Non-decreasing or Non-increasing

2268. Minimum Number of Keypresses

2277. Closest Node to Path in Tree

2282. Number of People That Can Be Seen in a Grid

2291. Maximum Profit From Trading Stocks

2297. Jump Game VIII

2307. Check for Contradictions in Equations

2313. Minimum Flips in Binary Tree to Get Result

2323. Find Minimum Time to Finish All Jobs II

2330. Valid Palindrome IV

2340. Minimum Adjacent Swaps to Make a Valid Array

2345. Finding the Number of Visible Mountains

2355. Maximum Number of Books You Can Take

2361. Minimum Costs Using the Train Line

2371. Minimize Maximum Value in a Grid

2378. Choose Edges to Maximize Score in a Tree

2387. Median of a Row Wise Sorted Matrix

2393. Count Strictly Increasing Subarrays

2403. Minimum Time to Kill All Monsters

2408. Design SQL

2417. Closest Fair Integer

2422. Merge Operations to Turn Array Into a Palindrome

2431. Maximize Total Tastiness of Purchased Fruits

2436. Minimum Split Into Subarrays With GCD Greater Than One

2445. Number of Nodes With Value One

2450. Number of Distinct Binary Strings After Applying Operations

2459. Sort Array by Moving Items to Empty Space

2464. Minimum Subarrays in a Valid Split

2473. Minimum Cost to Buy Apples

2479. Maximum XOR of Two Non-Overlapping Subtrees

2489. Number of Substrings With Fixed Ratio

2495. Number of Subarrays Having Even Product

2505. Bitwise OR of All Subsequence Sums

2510. Check if There is a Path With Equal Number of 0's And 1's

2519. Count the Number of K-Big Indices

2524. Maximum Frequency Score of a Subarray

2533. Number of Good Binary Strings

2534. Time Taken to Cross the Door

2539. Count the Number of Good Subsequences

2548. Maximum Price to Fill a Bag

2557. Maximum Number of Integers to Choose From a Range II

2590. Design a Todo List

2599. Make the Prefix Sum Non-negative

2604. Minimum Time to Eat All Grains

2613. Beautiful Pairs

2638. Count the Number of K-Free Subsets

2647. Color the Triangle Red

2655. Find Maximal Uncovered Ranges

2664. The Knight’s Tour

2674. Split a Circular Linked List

2689. Extract Kth Character From The Rope Tree

2702. Minimum Operations to Make Numbers Non-positive

2714. Find Shortest Path with K Hops

About

[back to top]

This project uses selenium to programmatically screenshot all editorials and problems.

Please report any Issues, such as

Potential future improvements for the project include:

I am done working on the project for now, but if this becomes popular and people start using it, I may do more. If you want a feature, open an Issue, and I may do it. Please reach out if you are interested in contributing.

Note: \ When creating issues, note that some problems that leetcode says have editorials, actually do not: