Skip to content

jonledet/leetcode-150

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode 150 - Java Solutions

This repository contains my Java solutions to the "LeetCode 150" problems. These are selected popular problems from LeetCode that are often asked in technical interviews.

Structure

Each problem is organized into its own folder named after the problem. The folder typically contains:

  • Problem.md: A brief explanation of the problem.
  • Solution.java: The Java code for the solution.

Completed Solutions

# Tag Difficulty Problem Solution
1 Hash Table/Array Easy Two Sum Solution.java
9 Math Easy Palindrome Number Solution.java
35 Array/Binary Search Easy Search Insert Position Solution.java
58 String Easy Length of Last Word Solution.java
66 Array/Math Easy Plus One Solution.java
125 String Easy Valid Palindrome Solution.java
135 Array Hard Candy Solution.java
136 Bit Manipulation Easy Single Number Solution.java
151 Two Pointers Medium Reverse Words in a String Solution.java
169 Array/Counting Easy Majority Element Solution.java
191 Bit Manipulation Easy Number of 1 Bits Solution.java
226 Tree Easy Invert Binary Tree Solution.java
242 String Easy Valid Anagram Solution.java
380 Hash Table/Array Medium RandomizedSet Solution.java

Contributing

If you'd like to suggest a different approach or optimization, feel free to open an issue or submit a pull request.

License

This repository is licensed under the MIT License. See the LICENSE file for more details.

About

Java solutions to the LeetCode 150 problems.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages