Skip to content

A collection of my solutions to LeetCode problems I implemented in JavaScript, Java, Rust, Python and C#, accompanied by comments explaining my process.

Notifications You must be signed in to change notification settings

JeremieNR/my-leetcode-solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

205 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository holds a collection of my solutions to LeetCode problems I implemented in JavaScript, Java, Rust, Python and C#, accompanied by comments explaining my process. I try my best to solve the solutions in the best overall time complexity it can be solved in.


Problems Difficulty Level Languages Overall Time Complexity
[#1] Two Sum Easy JavaScript, Java, Rust, Python and C# O(n)
[#7] Reverse Integer Medium Python O(log(n))
[#9] Palindrome Number Easy JavaScript, Java, Rust, Python and C# O(n)
[#14] Longest Common Prefix Easy Python O(n*m)
[#26] Remove Duplicates from Sorted Array Easy JavaScript, Java, Rust, Python and C# O(n)
[#27] Remove Element Easy JavaScript, Java, Rust, Python and C# O(n)
[#58] Length of Last Word Easy JavaScript, Java, Rust, Python and C# O(n)
[#66] Plus One Easy Python O(n)
[#69] Sqrt(x) Easy JavaScript, Java, Rust, Python and C# O(log(n))
[#125] Valid Palindrome Easy JavaScript and Python O(n)
[#136] Single Number Easy JavaScript, Java, Rust, Python and C# O(n)
[#169] Majority Element Easy JavaScript, Java, Rust and C# O(n)
[#191] Number of 1 Bits Easy JavaScript, Java, Python and C# O(log(n))
[#205] Isomorphic Strings Easy JavaScript, Java, Python and C# O(n)
[#217] Contains Duplicate Easy JavaScript, Java, Rust, and C# O(n)
[#231] Power of Two Easy JavaScript, Java, Rust, and C# O(1)
[#242] Valid Anagram Easy Java and Python O(n)
[#260] Single Number III Medium JavaScript, Java, Rust, Python and C# O(n)
[#268] Missing Number Easy JavaScript, Java, Rust, Python and C# O(n)
[#278] First Bad Version Easy JavaScript and Python O(log(n))
[#326] Power of Three Easy JavaScript, Java, Rust, Python and C# O(1)
[#342] Power of Four Easy JavaScript, Java, Rust, Python and C# O(1)
[#349] Intersection of Two Arrays Easy JavaScript O(n+m)
[#2239] Find Closest Number to Zero Easy JavaScript, Java, Rust, Python and C# O(n)

About

A collection of my solutions to LeetCode problems I implemented in JavaScript, Java, Rust, Python and C#, accompanied by comments explaining my process.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published