Skip to content

Solved tasks on LeetCode, HakerRank, Codility, LinkedIn

Notifications You must be signed in to change notification settings

pomidorum1989/java-algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Algorithms Solved on LeetCode, HackerRank, Codility, LinkedIn

This repository contains solutions to various algorithmic problems solved on platforms like

  1. LeetCode
  2. HackerRank
  3. Codility
  4. LinkedIn

Table of Contents

  1. LeetCode
  2. HackerRank
  3. Codility
  4. AlgoExpert

LeetCode LeetCode.java

LeetCode Method References

Method: reverse
Problem link: reverse
---------------------------------------------------------------------------
Method: compress
Problem link: compress
---------------------------------------------------------------------------
Method: merge
Problem link: merge
---------------------------------------------------------------------------
Method: rotate1
Problem link: rotate1
---------------------------------------------------------------------------
Method: rotate2
Problem link: rotate2
---------------------------------------------------------------------------
Method: rotate
Problem link: rotate
---------------------------------------------------------------------------
Method: isValid
Problem link: isValid
---------------------------------------------------------------------------
Method: containsNearbyDuplicate
Problem link: containsNearbyDuplicate
---------------------------------------------------------------------------
Method: containsNearbyDuplicate1
Problem link: containsNearbyDuplicate1
---------------------------------------------------------------------------
Method: removeDuplicates
Problem link: removeDuplicates
---------------------------------------------------------------------------
Method: lengthOfLastWord
Problem link: lengthOfLastWord
---------------------------------------------------------------------------
Method: longestCommonPart
Problem link: longestCommonPart
---------------------------------------------------------------------------
Method: firstUniqueChar
Problem link: firstUniqueChar
---------------------------------------------------------------------------
Method: firstUniqueChar1
Problem link: firstUniqueChar1
---------------------------------------------------------------------------
Method: removeDuplicates1
Problem link: removeDuplicates1
---------------------------------------------------------------------------
Method: removeDuplicates2
Problem link: removeDuplicates2
---------------------------------------------------------------------------
Method: removeDuplicates3
Problem link: removeDuplicates3
---------------------------------------------------------------------------
Method: removeDuplicates4
Problem link: removeDuplicates4
---------------------------------------------------------------------------
Method: removeDuplicates5
Problem link: removeDuplicates5
---------------------------------------------------------------------------
Method: longestCommonPrefix
Problem link: longestCommonPrefix
---------------------------------------------------------------------------
Method: longestCommonPrefix1
Problem link: longestCommonPrefix1
---------------------------------------------------------------------------
Method: removeElement
Problem link: removeElement
---------------------------------------------------------------------------
Method: strStr1
Problem link: strStr1
---------------------------------------------------------------------------
Method: isAnagram1
Problem link: isAnagram1
---------------------------------------------------------------------------
Method: isAnagram3
Problem link: isAnagram3
---------------------------------------------------------------------------
Method: isPalindrome1
Problem link: isPalindrome1
---------------------------------------------------------------------------
Method: isPalindrome2
Problem link: isPalindrome2
---------------------------------------------------------------------------
Method: reverse1
Problem link: reverse1
---------------------------------------------------------------------------
Method: moveZeroes
Problem link: moveZeroes
---------------------------------------------------------------------------
Method: plusOne
Problem link: plusOne
---------------------------------------------------------------------------
Method: plusOne1
Problem link: plusOne1
---------------------------------------------------------------------------
Method: intersect
Problem link: intersect
---------------------------------------------------------------------------
Method: maxProfit1
Problem link: maxProfit1
---------------------------------------------------------------------------
Method: maxProfit2
Problem link: maxProfit2
---------------------------------------------------------------------------
Method: isIsomorphic
Problem link: isIsomorphic
---------------------------------------------------------------------------
Method: maxProfit
Problem link: maxProfit
---------------------------------------------------------------------------
Method: reverseString
Problem link: reverseString
---------------------------------------------------------------------------
Method: isAnagram
Problem link: isAnagram
---------------------------------------------------------------------------
Method: isPalindrome
Problem link: isPalindrome
---------------------------------------------------------------------------
Method: canConstruct
Problem link: canConstruct
---------------------------------------------------------------------------
Method: wordPattern
Problem link: wordPattern
---------------------------------------------------------------------------
Method: summaryRanges
Problem link: summaryRanges
---------------------------------------------------------------------------
Method: isHappy
Problem link: isHappy
---------------------------------------------------------------------------
Method: canJump
Problem link: canJump
---------------------------------------------------------------------------
Method: isUgly
Problem link: isUgly
---------------------------------------------------------------------------
Method: strStr
Problem link: strStr
---------------------------------------------------------------------------
Method: myAtoi
Problem link: myAtoi
---------------------------------------------------------------------------
Method: twoSum
Problem link: twoSum
---------------------------------------------------------------------------
HackerRank HackerRank.java

HackerRank Method References

Method: xor
Problem link: xor
---------------------------------------------------------------------------
Method: pageCount
Problem link: pageCount
---------------------------------------------------------------------------
Method: createFibonacciSequence
Problem link: createFibonacciSequence
---------------------------------------------------------------------------
Method: fibonacciRecursion
Problem link: fibonacciRecursion
---------------------------------------------------------------------------
Method: matchingStrings
Problem link: matchingStrings
---------------------------------------------------------------------------
Method: diagonalDifference
Problem link: diagonalDifference
---------------------------------------------------------------------------
Method: staircaseReverted
Problem link: staircaseReverted
---------------------------------------------------------------------------
Method: compareTriplets
Problem link: compareTriplets
---------------------------------------------------------------------------
Method: minimalHeaviestSetA
Problem link: minimalHeaviestSetA
---------------------------------------------------------------------------
Method: lexicographicalCounter
Problem link: lexicographicalCounter
---------------------------------------------------------------------------
Method: findZigZagSequence
Problem link: findZigZagSequence
---------------------------------------------------------------------------
Method: flippingTheMatrix
Problem link: flippingTheMatrix
---------------------------------------------------------------------------
Method: superDigit
Problem link: superDigit
---------------------------------------------------------------------------
Method: plusMinus
Problem link: plusMinus
---------------------------------------------------------------------------
Method: timeConversion
Problem link: timeConversion
---------------------------------------------------------------------------
Method: lonelyInteger
Problem link: lonelyInteger
---------------------------------------------------------------------------
Method: flippingBits
Problem link: flippingBits
---------------------------------------------------------------------------
Method: pangrams
Problem link: pangrams
---------------------------------------------------------------------------
Method: birthday
Problem link: birthday
---------------------------------------------------------------------------
Method: staircase
Problem link: staircase
---------------------------------------------------------------------------
Method: miniMaxSum
Problem link: miniMaxSum
---------------------------------------------------------------------------
Method: miniMaxSum2
Problem link: miniMaxSum2
---------------------------------------------------------------------------
Method: isFibonacci
Problem link: isFibonacci
---------------------------------------------------------------------------
Method: twoArrays
Problem link: twoArrays
---------------------------------------------------------------------------
Method: countingSort
Problem link: countingSort
---------------------------------------------------------------------------
Method: sockMerchant
Problem link: sockMerchant
---------------------------------------------------------------------------
Method: towerBreakers
Problem link: towerBreakers
---------------------------------------------------------------------------
Method: caesarCipher
Problem link: caesarCipher
---------------------------------------------------------------------------
Method: gridChallenge
Problem link: gridChallenge
---------------------------------------------------------------------------
Method: balancedSums
Problem link: balancedSums
---------------------------------------------------------------------------
Method: balancedSums1
Problem link: balancedSums1
---------------------------------------------------------------------------
Method: counterGame
Problem link: counterGame
---------------------------------------------------------------------------
Method: counterGame1
Problem link: counterGame1
---------------------------------------------------------------------------
Method: maxMin
Problem link: maxMin
---------------------------------------------------------------------------
Codility Codility.java

Codility Method References

Method: palindromeCheck3
Problem link: palindromeCheck3
---------------------------------------------------------------------------
Method: palindromeCheck
Problem link: palindromeCheck
---------------------------------------------------------------------------
Method: palindromeCheck1
Problem link: palindromeCheck1
---------------------------------------------------------------------------
Method: palindromeCheck2
Problem link: palindromeCheck2
---------------------------------------------------------------------------
Method: findMinimumValueIndex
Problem link: findMinimumValueIndex
---------------------------------------------------------------------------
Method: findMinimumValueIndex1
Problem link: findMinimumValueIndex1
---------------------------------------------------------------------------
Method: findExtraElement
Problem link: findExtraElement
---------------------------------------------------------------------------
Method: permMissingElem
Problem link: permMissingElem
---------------------------------------------------------------------------
Method: tapeEquilibrium
Problem link: tapeEquilibrium
---------------------------------------------------------------------------
Method: bubbleSort
Problem link: bubbleSort
---------------------------------------------------------------------------
Method: binaryGap
Problem link: binaryGap
---------------------------------------------------------------------------
Method: rotateArray
Problem link: rotateArray
---------------------------------------------------------------------------
Method: frogJump
Problem link: frogJump
---------------------------------------------------------------------------
Method: frogRiverOne
Problem link: frogRiverOne
---------------------------------------------------------------------------
Method: permCheck
Problem link: permCheck
---------------------------------------------------------------------------
Method: permCheck1
Problem link: permCheck1
---------------------------------------------------------------------------
Method: missingInteger
Problem link: missingInteger
---------------------------------------------------------------------------
Method: passingCars
Problem link: passingCars
---------------------------------------------------------------------------
Method: passingCars1
Problem link: passingCars1
---------------------------------------------------------------------------
AlgoExpert AlgoExpert.java

AlgoExpert Method References

Method: binarySearch
Problem link: binarySearch
---------------------------------------------------------------------------
Method: validateSubSequence
Problem link: validateSubSequence
---------------------------------------------------------------------------
Method: sumOfTwo
Problem link: sumOfTwo
---------------------------------------------------------------------------
Method: sumOfNumber
Problem link: sumOfNumber
---------------------------------------------------------------------------
Habr Habr.java

Habr Method References

Method: reverse
Problem link: reverse
---------------------------------------------------------------------------
Method: compress
Problem link: compress
---------------------------------------------------------------------------
Method: merge
Problem link: merge
---------------------------------------------------------------------------
Method: rotate1
Problem link: rotate1
---------------------------------------------------------------------------
Method: rotate2
Problem link: rotate2
---------------------------------------------------------------------------
Method: rotate
Problem link: rotate
---------------------------------------------------------------------------
Method: isValid
Problem link: isValid
---------------------------------------------------------------------------
Method: removeDuplicates
Problem link: removeDuplicates
---------------------------------------------------------------------------
Method: lengthOfLastWord
Problem link: lengthOfLastWord
---------------------------------------------------------------------------
Method: longestCommonPart
Problem link: longestCommonPart
---------------------------------------------------------------------------
Method: firstUniqueChar
Problem link: firstUniqueChar
---------------------------------------------------------------------------
Method: firstUniqueChar1
Problem link: firstUniqueChar1
---------------------------------------------------------------------------
Method: removeDuplicates1
Problem link: removeDuplicates1
---------------------------------------------------------------------------
Method: removeDuplicates2
Problem link: removeDuplicates2
---------------------------------------------------------------------------
Method: removeDuplicates3
Problem link: removeDuplicates3
---------------------------------------------------------------------------
Method: removeDuplicates4
Problem link: removeDuplicates4
---------------------------------------------------------------------------
Method: removeDuplicates5
Problem link: removeDuplicates5
---------------------------------------------------------------------------
Method: longestCommonPrefix
Problem link: longestCommonPrefix
---------------------------------------------------------------------------
Method: longestCommonPrefix1
Problem link: longestCommonPrefix1
---------------------------------------------------------------------------
Method: maxProfit
Problem link: maxProfit
---------------------------------------------------------------------------
Method: reverseString
Problem link: reverseString
---------------------------------------------------------------------------
Method: isAnagram
Problem link: isAnagram
---------------------------------------------------------------------------
Method: isPalindrome
Problem link: isPalindrome
---------------------------------------------------------------------------
Method: canConstruct
Problem link: canConstruct
---------------------------------------------------------------------------
Method: removeElement
Problem link: removeElement
---------------------------------------------------------------------------
Method: strStr1
Problem link: strStr1
---------------------------------------------------------------------------
Method: isAnagram1
Problem link: isAnagram1
---------------------------------------------------------------------------
Method: isAnagram3
Problem link: isAnagram3
---------------------------------------------------------------------------
Method: isPalindrome1
Problem link: isPalindrome1
---------------------------------------------------------------------------
Method: isPalindrome2
Problem link: isPalindrome2
---------------------------------------------------------------------------
Method: reverse1
Problem link: reverse1
---------------------------------------------------------------------------
Method: moveZeroes
Problem link: moveZeroes
---------------------------------------------------------------------------
Method: plusOne
Problem link: plusOne
---------------------------------------------------------------------------
Method: plusOne1
Problem link: plusOne1
---------------------------------------------------------------------------
Method: intersect
Problem link: intersect
---------------------------------------------------------------------------
Method: maxProfit1
Problem link: maxProfit1
---------------------------------------------------------------------------
Method: maxProfit2
Problem link: maxProfit2
---------------------------------------------------------------------------
Method: isIsomorphic
Problem link: isIsomorphic
---------------------------------------------------------------------------
Method: wordPattern
Problem link: wordPattern
---------------------------------------------------------------------------
Method: summaryRanges
Problem link: summaryRanges
---------------------------------------------------------------------------
Method: isHappy
Problem link: isHappy
---------------------------------------------------------------------------
Method: isUgly
Problem link: isUgly
---------------------------------------------------------------------------
Method: strStr
Problem link: strStr
---------------------------------------------------------------------------
Method: myAtoi
Problem link: myAtoi
---------------------------------------------------------------------------
Method: twoSum
Problem link: twoSum
---------------------------------------------------------------------------
Method: containsNearbyDuplicate
Problem link: containsNearbyDuplicate
---------------------------------------------------------------------------
Method: containsNearbyDuplicate1
Problem link: containsNearbyDuplicate1
---------------------------------------------------------------------------
HackerRank HackerRank.java

HackerRank Method References

Method: xor
Problem link: xor
---------------------------------------------------------------------------
Method: pageCount
Problem link: pageCount
---------------------------------------------------------------------------
Method: fibonacciRecursion
Problem link: fibonacciRecursion
---------------------------------------------------------------------------
Method: matchingStrings
Problem link: matchingStrings
---------------------------------------------------------------------------
Method: diagonalDifference
Problem link: diagonalDifference
---------------------------------------------------------------------------
Method: staircaseReverted
Problem link: staircaseReverted
---------------------------------------------------------------------------
Method: compareTriplets
Problem link: compareTriplets
---------------------------------------------------------------------------
Method: minimalHeaviestSetA
Problem link: minimalHeaviestSetA
---------------------------------------------------------------------------
Method: lexicographicalCounter
Problem link: lexicographicalCounter
---------------------------------------------------------------------------
Method: findZigZagSequence
Problem link: findZigZagSequence
---------------------------------------------------------------------------
Method: flippingTheMatrix
Problem link: flippingTheMatrix
---------------------------------------------------------------------------
Method: superDigit
Problem link: superDigit
---------------------------------------------------------------------------
Method: plusMinus
Problem link: plusMinus
---------------------------------------------------------------------------
Method: miniMaxSum
Problem link: miniMaxSum
---------------------------------------------------------------------------
Method: timeConversion
Problem link: timeConversion
---------------------------------------------------------------------------
Method: lonelyInteger
Problem link: lonelyInteger
---------------------------------------------------------------------------
Method: flippingBits
Problem link: flippingBits
---------------------------------------------------------------------------
Method: pangrams
Problem link: pangrams
---------------------------------------------------------------------------
Method: birthday
Problem link: birthday
---------------------------------------------------------------------------
Method: staircase
Problem link: staircase
---------------------------------------------------------------------------
Method: miniMaxSum2
Problem link: miniMaxSum2
---------------------------------------------------------------------------
Method: isFibonacci
Problem link: isFibonacci
---------------------------------------------------------------------------
Method: twoArrays
Problem link: twoArrays
---------------------------------------------------------------------------
Method: countingSort
Problem link: countingSort
---------------------------------------------------------------------------
Method: sockMerchant
Problem link: sockMerchant
---------------------------------------------------------------------------
Method: towerBreakers
Problem link: towerBreakers
---------------------------------------------------------------------------
Method: caesarCipher
Problem link: caesarCipher
---------------------------------------------------------------------------
Method: gridChallenge
Problem link: gridChallenge
---------------------------------------------------------------------------
Method: balancedSums
Problem link: balancedSums
---------------------------------------------------------------------------
Method: balancedSums1
Problem link: balancedSums1
---------------------------------------------------------------------------
Method: counterGame
Problem link: counterGame
---------------------------------------------------------------------------
Method: counterGame1
Problem link: counterGame1
---------------------------------------------------------------------------
Method: maxMin
Problem link: maxMin
---------------------------------------------------------------------------
Method: createFibonacciSequence
Problem link: createFibonacciSequence
---------------------------------------------------------------------------
Codility Codility.java

Codility Method References

Method: palindromeCheck3
Problem link: palindromeCheck3
---------------------------------------------------------------------------
Method: palindromeCheck
Problem link: palindromeCheck
---------------------------------------------------------------------------
Method: palindromeCheck1
Problem link: palindromeCheck1
---------------------------------------------------------------------------
Method: palindromeCheck2
Problem link: palindromeCheck2
---------------------------------------------------------------------------
Method: findMinimumValueIndex
Problem link: findMinimumValueIndex
---------------------------------------------------------------------------
Method: findExtraElement
Problem link: findExtraElement
---------------------------------------------------------------------------
Method: permMissingElem
Problem link: permMissingElem
---------------------------------------------------------------------------
Method: tapeEquilibrium
Problem link: tapeEquilibrium
---------------------------------------------------------------------------
Method: bubbleSort
Problem link: bubbleSort
---------------------------------------------------------------------------
Method: binaryGap
Problem link: binaryGap
---------------------------------------------------------------------------
Method: rotateArray
Problem link: rotateArray
---------------------------------------------------------------------------
Method: frogJump
Problem link: frogJump
---------------------------------------------------------------------------
Method: frogRiverOne
Problem link: frogRiverOne
---------------------------------------------------------------------------
Method: permCheck
Problem link: permCheck
---------------------------------------------------------------------------
Method: permCheck1
Problem link: permCheck1
---------------------------------------------------------------------------
Method: missingInteger
Problem link: missingInteger
---------------------------------------------------------------------------
Method: passingCars
Problem link: passingCars
---------------------------------------------------------------------------
Method: passingCars1
Problem link: passingCars1
---------------------------------------------------------------------------
AlgoExpert AlgoExpert.java

AlgoExpert Method References

Method: binarySearch
Problem link: binarySearch
---------------------------------------------------------------------------
Method: validateSubSequence
Problem link: validateSubSequence
---------------------------------------------------------------------------
Method: sumOfTwo
Problem link: sumOfTwo
---------------------------------------------------------------------------
Method: sumOfNumber
Problem link: sumOfNumber
---------------------------------------------------------------------------
Habr Habr.java

Habr Method References

About

Solved tasks on LeetCode, HakerRank, Codility, LinkedIn

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages