/leetcode.rs

LeetCode problems' solutions in Rust.

Primary LanguageRustMIT LicenseMIT

Leetcode.rs

Solution Coverage Rust Lang License: MIT

Solutions to LeetCode problems in Rust.

Run Test case

cargo test -- t1 # run test case for problem #1

Solutions

# Problem Difficulty Number of solutions
#57 Insert Interval Hard 1
#56 Merge Intervals Medium 2
#55 Jump Game Medium 5
#54 Spiral Matrix Medium 2
#53 Maximum Subarray Easy 4
#52 N-Queens II Hard 1
#51 N-Queens Hard 2
#50 Pow(x, n) Medium 2
#49 Group Anagrams Medium 1
#48 Rotate Image Medium 2
#47 Permutations II Medium 2
#46 Permutations Medium 3
#45 Jump Game II Hard 2
#44 Wildcard Matching Hard 2
#43 Multiply Strings Medium 2
#42 Trapping Rain Water Hard 5
#41 First Missing Positive Hard 1
#40 Combination Sum II Medium 1
#39 Combination Sum Medium 1
#38 Count and Say Easy 1
#37 Sudoku Solver Hard 1
#36 Valid Sudoku Medium 2
#35 Search Insert Position Easy 2
#34 Find First and Last Position of Element in Sorted Array Medium 3
#33 Search in Rotated Sorted Array Medium 2
#32 Longest Valid Parentheses Hard 4
#31 Next Permutation Medium 2
#30 Substring with Concatenation of All Words Hard 1
#29 Divide Two Integers Medium 2
#28 Implement strStr() Easy 3
#27 Remove Element Easy 2
#26 Remove Duplicates from Sorted Array Easy 2
#25 Reverse Nodes in k-Group Hard 1
#24 Swap Nodes in Pairs Medium 2
#23 Merge k Sorted Lists Hard 5
#22 Generate Parentheses Medium 3
#21 Merge Two Sorted Lists Easy 1
#20 Valid Parentheses Easy 1
#19 Remove Nth Node From End of List Medium 2
#18 4Sum Medium 1
#17 Letter Combinations of a Phone Number Medium 2
#16 3Sum Closest Medium 2
#15 3Sum Medium 3
#14 Longest Common Prefix Easy 4
#13 Roman to Integer Easy 1
#12 Integer to Roman Medium 2
#11 Container With Most Water Medium 2
#10 Regular Expression Matching Hard 3
#9 Palindrome Number Medium 3
#8 String to Integer (atoi) Medium 1
#7 Reverse Integer Easy 1
#6 ZigZag Conversion Medium 3
#5 Longest Palindromic Substring Medium 4
#4 Median of Two Sorted Arrays Hard 3
#3 Longest Substring Without Repeating Characters Medium 3
#2 Add Two Numbers Medium 1
#1 Two Sum Easy 2