https://github.com/tushar-borole/leetcode-java
https://github.com/tushar-borole/leetcode-java
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tushar-borole/leetcode-java
- Owner: tushar-borole
- Created: 2025-03-25T03:41:03.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-04-02T05:02:43.000Z (9 months ago)
- Last Synced: 2025-04-02T06:21:34.797Z (9 months ago)
- Language: Java
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LeetCode Solutions
This repository contains my solutions to various LeetCode problems.
## Problems
### From src/com/tushar/leetcode/editor/en/
| # | Title | Solution |
|---|-------|----------|
| 121 | [Best Time to Buy and Sell Stock](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/) | [Java](src/com/tushar/leetcode/editor/en/BestTimeToBuyAndSellStock.java) |
| 14 | [Longest Common Prefix](https://leetcode.com/problems/longest-common-prefix/) | [Java](src/com/tushar/leetcode/editor/en/LongestCommonPrefix.java) |
### Standalone Solutions
| Title | Solution |
|-------|----------|
| [Find the Index of the First Occurrence in a String](https://leetcode.com/problems/find-the-index-of-the-first-occurrence-in-a-string/) | [Java](find_the_index_of_the_first_occurrence_in_a_string/find_the_index_of_the_first_occurrence_in_a_string.java) |
| [Majority Element](https://leetcode.com/problems/majority-element/) | [Java](majority_element/majority_element.java) |
| [Merge Sorted Array](https://leetcode.com/problems/merge-sorted-array/) | [Java](merge_sorted_array/merge_sorted_array.java) |
## Structure
The repository is organized in two ways:
1. Some solutions are in the `src/com/tushar/leetcode/editor/en/` directory with their problem descriptions in `src/com/tushar/leetcode/editor/en/doc/content/`.
2. Others are in their own directories with a README.md file containing the problem description and a Java file with the solution.