Skip to content

DmitriySh/leetcode-examples

Repository files navigation

Leetcode examples

My pet project. This is a code examples with my solutions for Leetcode problems.

Requirements:

  • Java SE Development Kit 17
  • Git 1.7.x (or newer)

Solved problems

Run:

  • build app
~$ ./gradlew clean build

BUILD SUCCESSFUL in 2s
4 actionable tasks: 4 executed
  • start app with problem (example)
~$ java -jar ./build/libs/leetcode-examples.jar validParentheses
Start validating parentheses...
Parentheses: ()[{}]

Result. Parentheses is: valid
  • parameters:
    • numberOfIslands
    • validParentheses
    • powerOfTwo
    • search2DMatrix
    • numberOfOneBits
    • reverseLinkedList
    • middleOfLinkedList
    • validPalindrome
    • validAnagram
    • wordPattern
    • validIpAddress
    • plusOne
    • removeDuplicatesFromSortedArray
    • oneEditDistance
    • fibonacciNumber
    • stringCompression
    • longestSubstringWithoutRepeatingChars
    • mergeIntervals

About

Leetcode problems for practice

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages