Skip to content

burjee/leetcode-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

200 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RUN

cargo run <problem_number>

1 Two Sum

2 Add Two Numbers

3 Longest Substring Without Repeating Characters

5 Longest Palindromic Substring

6 Zigzag Conversion

9 Palindrome Number

11 Container With Most Water

12 Integer to Roman

13 Roman to Integer

14 Longest Common Prefix

15 3Sum

17 Letter Combinations of a Phone Number

19 Remove Nth Node From End of List

20 Valid Parentheses

21 Merge Two Sorted Lists

23 Merge k Sorted Lists

24 Swap Nodes in Pairs

26 Remove Duplicates from Sorted Array

27 Remove Element

28 Find the Index of the First Occurrence in a String

33 Search in Rotated Sorted Array

39 Combination Sum

42 Trapping Rain Water

45 Jump Game II

48 Rotate Image

49 Group Anagrams

53 Maximum Subarray

54 Spiral Matrix

55 Jump Game

56 Merge Intervals

57 Insert Interval

58 Length of Last Word

59 Spiral Matrix II

62 Unique Paths

67 Add Binary

68 Text Justification

70 Climbing Stairs

72 Edit Distance

73 Set Matrix Zeroes

76 Minimum Window Substring

79 Word Search

80 Remove Duplicates from Sorted Array II

88 Merge Sorted Array

91 Decode Ways

92 Reverse Linked List II

96 Unique Binary Search Trees

98 Validate 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

121 Best Time to Buy and Sell Stock

122 Best Time to Buy and Sell Stock II

124 Binary Tree Maximum Path Sum

125 Valid Palindrome

128 Longest Consecutive Sequence

129 Sum Root to Leaf Numbers

130 Surrounded Regions

134 Gas Station

135 Candy

136 Single Number

139 Word Break

143 Reorder List

151 Reverse Words in a String

152 Maximum Product Subarray

153 Find Minimum in Rotated Sorted Array

162 Find Peak Element

168 Excel Sheet Column Title

169 Majority Element

189 Rotate Array

190 Reverse Bits

191 Number of 1 Bits

198 House Robber

199 Binary Tree Right Side View

200 Number of Islands

202 Happy Number

203 Remove Linked List Elements

206 Reverse Linked List

207 Course Schedule

208 Implement Trie (Prefix Tree)

211 Design Add and Search Words Data Structure

212 Word Search II

213 House Robber II

215 Kth Largest Element in an Array

216 Combination Sum III

217 Contains Duplicate

226 Invert Binary Tree

230 Kth Smallest Element in a BST

235 Lowest Common Ancestor of a Binary Search Tree

236 Lowest Common Ancestor of a Binary Tree

238 Product of Array Except Self

242 Valid Anagram

258 Add Digits

260 Single Number III

268 Missing Number

274 H-Index

283 Move Zeroes

295 Find Median from Data Stream

297 Serialize and Deserialize Binary Tree

300 Longest Increasing Subsequence

310 Minimum Height Trees

319 Bulb Switcher

322 Coin Change

328 Odd Even Linked List

334 Increasing Triplet Subsequence

338 Counting Bits

345 Reverse Vowels of a String

347 Top K Frequent Elements

368 Largest Divisible Subset

371 Sum of Two Integers

374 Guess Number Higher or Lower

380 Insert Delete GetRandom O(1)

392 Is Subsequence

394 Decode String

399 Evaluate Division

402 Remove K Digits

404 Sum of Left Leaves

417 Pacific Atlantic Water Flow

424 Longest Repeating Character Replacement

435 Non-overlapping Intervals

437 Path Sum III

441 Arranging Coins

443 String Compression

450 Delete Node in a BST

452 Minimum Number of Arrows to Burst Balloons

461 Hamming Distance

506 Relative Ranks

540 Single Element in a Sorted Array

547 Number of Provinces

572 Subtree of Another Tree

605 Can Place Flowers

623 Add One Row to Tree

643 Maximum Average Subarray I

647 Palindromic Substrings

649 Dota2 Senate

658 Find K Closest Elements

692 Top K Frequent Words

700 Search in a Binary Search Tree

703 Kth Largest Element in a Stream

705 Design HashSet

714 Best Time to Buy and Sell Stock with Transaction Fee

724 Find Pivot Index

735 Asteroid Collision

739 Daily Temperatures

746 Min Cost Climbing Stairs

785 Is Graph Bipartite

790 Domino and Tromino Tiling

797 All Paths From Source to Target

837 New 21 Game

839 Similar String Groups

841 Keys and Rooms

872 Leaf-Similar Trees

875 Koko Eating Bananas

901 Online Stock Span

931 Minimum Falling Path Sum

933 Number of Recent Calls

938 Range Sum of BST

980 Unique Paths III

994 Rotting Oranges

1004 Max Consecutive Ones III

1026 Maximum Difference Between Node and Ancestor

1035 Uncrossed Lines

1046 Last Stone Weight

1048 Longest String Chain

1071 Greatest Common Divisor of Strings

1091 Shortest Path in Binary Matrix

1137 N-th Tribonacci Number

1140 Stone Game II

1143 Longest Common Subsequence

1161 Maximum Level Sum of a Binary Tree

1207 Unique Number of Occurrences

1268 Search Suggestions System

1318 Minimum Flips to Make a OR b Equal to c

1372 Longest ZigZag Path in a Binary Tree

1396 Design Underground System

1413 Minimum Value to Get Positive Step by Step Sum

1431 Kids With the Greatest Number of Candies

1448 Count Good Nodes in Binary Tree

1456 Maximum Number of Vowels in a Substring of Given Length

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

1491 Average Salary Excluding the Minimum and Maximum Salary

1493 Longest Subarray of 1's After Deleting One Element

1557 Minimum Number of Vertices to Reach All Nodes

1572 Matrix Diagonal Sum

1603 Design Parking System

1657 Determine if Two Strings Are Close

1679 Max Number of K-Sum Pairs

1721 Swapping Nodes in a Linked List

1732 Find the Highest Altitude

1768 Merge Strings Alternately

1822 Sign of the Product of an Array

1834 Single-Threaded CPU

1926 Nearest Exit from Entrance in Maze

2095 Delete the Middle Node of a Linked List

2130 Maximum Twin Sum of a Linked List

2140 Solving Questions With Brainpower

2215 Find the Difference of Two Arrays

2300 Successful Pairs of Spells and Potions

2336 Smallest Number in Infinite Set

2352 Equal Row and Column Pairs

2390 Removing Stars From a String

2462 Total Cost to Hire K Workers

2542 Maximum Subsequence Score

3075 Maximize Happiness of Selected Children

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages