https://github.com/alapanme/data-structures-and-algorithms
Common Data Structures and Algorithms solved in Java
https://github.com/alapanme/data-structures-and-algorithms
algorithm algorithms data-structure data-structures data-structures-algorithms data-structures-and-algorithms java leet-code-solutions leetcode leetcode-java
Last synced: 4 months ago
JSON representation
Common Data Structures and Algorithms solved in Java
- Host: GitHub
- URL: https://github.com/alapanme/data-structures-and-algorithms
- Owner: alapanme
- Created: 2021-03-06T05:15:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-01T05:14:37.000Z (almost 3 years ago)
- Last Synced: 2025-01-16T13:17:36.813Z (5 months ago)
- Topics: algorithm, algorithms, data-structure, data-structures, data-structures-algorithms, data-structures-and-algorithms, java, leet-code-solutions, leetcode, leetcode-java
- Language: Java
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Data Structures and Algorithms
This project contains Java solutions of leetcode problems & basic Java concepts for Data Structures and Algorithms.# Leetcode Solutions
- [1 - Two Sum](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/twoSumSolution.java)
- [2 - Add Two Numbers](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/addTwoNumbers.java)
- [3 - Longest Substring Without Repeating Characters](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/lengthOfLongestSubstring.java)
- [7 - Reverse Integer](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/reverseIntegerSolution.java)
- [8 - String to Integer (atoi)](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/StringToInteger.java)
- [9 - Palindrome Number](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/palindromeSolution.java)
- [11 - Container With Most Water](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/containerWithMostWater.java)
- [12 - Integer to Roman](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/integerToRoman.java)
- [13 - Roman to Integer](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/romanToInteger.java)
- [14 - Longest Common Prefix](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/longestCommonPrefix.java)
- [15 - 3Sum](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/threeSumSolution.java)
- [16 - 3Sum Closest](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/threeSumClosest.java)
- [20 - Valid Parentheses](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/validParentheses.java)
- [21 - Merge Two Sorted Lists](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/mergeTwoSortedLists.java)
- [28 - Implement strStr()](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/implementStrStr.java)
- [48 - Rotate Image](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/RotateImage.java)
- [49 - Group Anagrams](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/groupAnagrams.java)
- [53 - Maximum Subarray](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/maximumSubArray.java)
- [121 - Best Time to Buy and Sell Stock](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/buyAndSellStock.java)
- [125 - Valid Palindrome](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/validPalindrome.java)
- [165 - Compare Version Numbers](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/compareVersionNumbers.java)
- [169 - Majority Element](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/majorityElement.java)
- [189 - Rotate Array](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/rotateArray.java)
- [217 - Contains Duplicate](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/containsDuplicate.java)
- [229 - Majority Element II](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/majorityElementII.java)
- [238 - Product of Array Except Self](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/ProductofArrayExceptSelf.java)
- [268 - Missing Number](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/MissingNumbers.java)
- [283 - Move Zeroes](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/moveZeros.java)
- [387 - First Unique Character in a String](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/firstUniqueCharacterInString.java)
- [560 - Subarray Sum Equals K](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/SubarraySumEqualsK.java)
- [819 - Most Common Word](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/mostCommonWord.java)
- [937 - Reorder Data in Log Files](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/ReorderDataInLogFiles.java)
- [977 - Squares of a Sorted Array](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/leetcode/SquaresofaSortedArray.java)# Practice Solutions
- [Bubble Sort](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/practice/bubbleSort.java)
- [Insertion Sort](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/practice/insertionSort.java)
- [Selection Sort](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/practice/selectionSort.java)
- [Reverse String](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/practice/reverseString.java)
- [Merge Sorted Arrays](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/practice/mergeSortedArrays.java)
- [Longest Word in a Sentence](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/practice/longestWordInSentence.java)
- [First Recurring](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/practice/firstRecurring.java)
- [String Anagrams](https://github.com/alapanme/Data-Structures-and-Algorithms/blob/master/src/com/alapan/dsalgo/practice/stringAnagrams.java)