An open API service indexing awesome lists of open source software.

https://github.com/tushar-borole/leetcode-java


https://github.com/tushar-borole/leetcode-java

Last synced: 9 months ago
JSON representation

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.