Skip to content

Hanckerrank - Challenges solution for hackerrank problems

Notifications You must be signed in to change notification settings

wenzaca/HackerRankJava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hackerrank Coding Challenge in Java

This project contains my resolution to the challenges from Hackerrank. All the challenges have been done in Java, mainly focused on using Java 8. I have been done the challenges to help me to be prepared for Java Technical interviews.

The challenges are available in Hackerrank website.

Fell free to reach me out with better solutions. I would love to get mine improved.

The classes may have junit 4 for testing with asserts.

Contact: wenzaca@gmail.com

/dashboard
    /algorithms
        /implementation
        E   /AngryProfessor: https://www.hackerrank.com/challenges/angry-professor/problem
        E   /BeautifulDaysAtTheMovies: https://www.hackerrank.com/challenges/beautiful-days-at-the-movies/problem
        E   /BetweenTwoSets: https://www.hackerrank.com/challenges/between-two-sets/problem
        E   /BonAppetit: https://www.hackerrank.com/challenges/bon-appetit/problem
        E   /BreakingTheRecords: https://www.hackerrank.com/challenges/breaking-best-and-worst-records/problem
        E   /DayOfTheProgrammer: https://www.hackerrank.com/challenges/day-of-the-programmer/problem
        E   /DesignerPDFViewer: https://www.hackerrank.com/challenges/designer-pdf-viewer/problem
        E   /DivisibleSumPairs: https://www.hackerrank.com/challenges/divisible-sum-pairs/problem
        E   /DrawingBook: https://www.hackerrank.com/challenges/drawing-book/problem
        E   /Kangaroo: https://www.hackerrank.com/challenges/kangaroo/problem
        E   /TheHurdleRace: https://www.hackerrank.com/challenges/the-hurdle-race/problem
        E   /MigrationBirds: https://www.hackerrank.com/challenges/migratory-birds/problem
        E   /UtopianTree: https://www.hackerrank.com/challenges/utopian-tree/problem
        /sorting
        E   /InsertionSort: https://www.hackerrank.com/challenges/insertionsort1/problem
        E   /InsertionSort2: https://www.hackerrank.com/challenges/insertionsort2/problem
        E   /IntroToTutorialChallenges: https://www.hackerrank.com/challenges/tutorial-intro/problem
        /warmup
        E   /MiniMaxSum: https://www.hackerrank.com/challenges/mini-max-sum/problem
        E   /BirthdayCakeCandles: https://www.hackerrank.com/challenges/birthday-cake-candles/problem
        E   /CompareTheTriplets: https://www.hackerrank.com/challenges/compare-the-triplets/problem
        E   /DiagonalDifference: https://www.hackerrank.com/challenges/diagonal-difference/problem
        E   /Staircase: https://www.hackerrank.com/challenges/staircase/problem
        E   /TimeConversion: https://www.hackerrank.com/challenges/time-conversion/problem
    /java
        /advanced
        M   /Annotations: https://www.hackerrank.com/challenges/java-annotations/problem
        M   /CanYouAccess: https://www.hackerrank.com/challenges/can-you-access/problem
        E   /Covariance: https://www.hackerrank.com/challenges/java-covariance/problem
        E   /FactoryPattern: https://www.hackerrank.com/challenges/java-factory/problem
        M   /LambdaExpression: https://www.hackerrank.com/challenges/java-lambda-expressions/problem
        M   /MD5: https://www.hackerrank.com/challenges/java-md5/problem
        M   /PrimeChecker: https://www.hackerrank.com/challenges/prime-checker/problem
        E   /ReflectionAttributes: https://www.hackerrank.com/challenges/java-reflection-attributes/problem
        M   /SHA256: https://www.hackerrank.com/challenges/sha-256/problem
        E   /SingletonPattern: https://www.hackerrank.com/challenges/java-singleton/problem
        E   /VarargSimpleAddition: https://www.hackerrank.com/challenges/simple-addition-varargs/problem
        /bigdecimal
        M   /BigDecimal: https://www.hackerrank.com/challenges/java-bigdecimal/problem
        E   /BigInteger: https://www.hackerrank.com/challenges/java-biginteger/problem
        E   /PrimalityTest: https://www.hackerrank.com/challenges/java-primality-test/problem
        /datastrcuture
        E   /Array1D: https://www.hackerrank.com/challenges/java-1d-array-introduction/problem
        E   /Array2D: https://www.hackerrank.com/challenges/java-2d-array/problem
        E   /ArrayList: https://www.hackerrank.com/challenges/java-arraylist/problem
        E   /BitSet: https://www.hackerrank.com/challenges/java-bitset/problem
        E   /Comparator: https://www.hackerrank.com/challenges/java-comparator/problem
        M   /Dequeue: https://www.hackerrank.com/challenges/java-dequeue/problem
        E   /HashSet: https://www.hackerrank.com/challenges/java-hashset/problem
        E   /Generics: https://www.hackerrank.com/challenges/java-generics/problem
        E   /List: https://www.hackerrank.com/challenges/java-list/problem
        E   /Map: https://www.hackerrank.com/challenges/phone-book/problem
        M   /PriorityQueue: https://www.hackerrank.com/challenges/java-priority-queue/problem
        E   /Sort: https://www.hackerrank.com/challenges/java-sort/problem
        M   /Stack: https://www.hackerrank.com/challenges/java-stack/problem
        E   /SubArray: https://www.hackerrank.com/challenges/java-negative-subarray/problem
        /exceptionhandling
        E   /TryCatch: https://www.hackerrank.com/challenges/java-exception-handling-try-catch/problem
        E   /ExceptionHandling: https://www.hackerrank.com/challenges/java-exception-handling/problem
        /introduction
        E   /CurrencyFormatter: https://www.hackerrank.com/challenges/java-currency-formatter/problem
        E   /DataType: https://www.hackerrank.com/challenges/java-datatypes/problem
        E   /DateAndTime: https://www.hackerrank.com/challenges/java-date-and-time/problem
        E   /EndOfFile: https://www.hackerrank.com/challenges/java-end-of-file/problem
        E   /IntToString: https://www.hackerrank.com/challenges/java-int-to-string/problem
        E   /LoopsI: https://www.hackerrank.com/challenges/java-loops-i/problem
        E   /LoopsII: https://www.hackerrank.com/challenges/java-loops/problem
        E   /StaticInitializerBlock: https://www.hackerrank.com/challenges/java-static-initializer-block/problem
        E   /StdinStdout: https://www.hackerrank.com/challenges/java-stdin-and-stdout-1/problem 
        /objectorientedprogramming
        E   /InstanceOf: https://www.hackerrank.com/challenges/java-instanceof-keyword/problem
        E   /Iterator: https://www.hackerrank.com/challenges/java-iterator/problem
        E   /MethodOverriding: https://www.hackerrank.com/challenges/java-method-overriding/problem
        E   /MethodOverriding2: https://www.hackerrank.com/challenges/java-method-overriding-2-super-keyword/problem
            /javainheritanceII
            E   /Main: https://www.hackerrank.com/challenges/java-inheritance-2/problem
            /javainterface
            E   /Solution: https://www.hackerrank.com/challenges/java-interface/problem
        /strings
        E   /Anagrams: https://www.hackerrank.com/challenges/java-anagrams/problem
        M   /Regex2DuplicateWord: https://www.hackerrank.com/challenges/duplicate-word/problem
        E   /StringIntroduction: https://www.hackerrank.com/challenges/java-strings-introduction/problem
        E   /StringReverse: https://www.hackerrank.com/challenges/java-string-reverse/problem
        E   /StringToken: https://www.hackerrank.com/challenges/java-string-tokens/problem
        E   /Substring: https://www.hackerrank.com/challenges/java-substring/problem
        E   /SubstringComparison: https://www.hackerrank.com/challenges/java-string-compare/problem
        E   /SyntaxChecker: https://www.hackerrank.com/challenges/pattern-syntax-checker/problem
        M   /TagContentExtractor: https://www.hackerrank.com/challenges/tag-content-extractor/problem
        E   /ValidUsernameChecker: https://www.hackerrank.com/challenges/valid-username-checker/problem
        /regex
        E   /Regex: https://www.hackerrank.com/challenges/java-regex/problem
/interview
    /array
    E   /Array2D: https://www.hackerrank.com/challenges/2d-array/problem
    E   /LeftRotation: https://www.hackerrank.com/challenges/ctci-array-left-rotation/problem
    M   /MinimumSwap2: https://www.hackerrank.com/challenges/minimum-swaps-2/problem
    M   /NewYearChaos: https://www.hackerrank.com/challenges/new-year-chaos/problem
    /dictionariesHashMaps
    E   /TwoStrings: https://www.hackerrank.com/challenges/two-strings/problem
    E   /RansomNote: https://www.hackerrank.com/challenges/ctci-ransom-note/problem
    M   /CountTriplet: https://www.hackerrank.com/challenges/count-triplets-1/problem
    M   /FrequencyQueries: https://www.hackerrank.com/challenges/frequency-queries/problem  --> TODO
    M   /SherlockAndAnagrams: https://www.hackerrank.com/challenges/sherlock-and-anagrams/problem  
    /dynamicprogramming
    M   /MaxArraySum: https://www.hackerrank.com/challenges/max-array-sum/problem
    /graph
    M   /RoadsAndLibraries: https://www.hackerrank.com/challenges/torque-and-development/problem
    /greeding  
    E   /LuckBalance: https://www.hackerrank.com/challenges/luck-balance/problem
    E   /MinimumAbsolutDifferenceArray: https://www.hackerrank.com/challenges/minimum-absolute-difference-in-an-array/problem
    M   /GreedyFlorist: https://www.hackerrank.com/challenges/greedy-florist/problem
    M   /MaxMin: https://www.hackerrank.com/challenges/angry-children/problem
    /linkedlist
    E   /NodeSpecificPosition: https://www.hackerrank.com/challenges/insert-a-node-at-a-specific-position-in-a-linked-list/problem
    E   /NodeInsertSortedDoublyList: https://www.hackerrank.com/challenges/insert-a-node-into-a-sorted-doubly-linked-list/problem
    E   /ReverseDoublyList: https://www.hackerrank.com/challenges/reverse-a-doubly-linked-list/problem
    /miscellaneous
    E   /FlippingBits: https://www.hackerrank.com/challenges/flipping-bits/problem
    M   /TimeComplexityPrimality: https://www.hackerrank.com/challenges/ctci-big-o/problem
    /recursion
    E   /Fibonacci: https://www.hackerrank.com/challenges/ctci-fibonacci-numbers/problem
    /sorting
    E   /BubbleSort: https://www.hackerrank.com/challenges/ctci-bubble-sort/problem
    E   /MarkAndToys: https://www.hackerrank.com/challenges/mark-and-toys/problem
    M   /SortingComparator: https://www.hackerrank.com/challenges/ctci-comparator-sorting/problem
    H   /MergeSort: https://www.hackerrank.com/challenges/ctci-merge-sort/problem
    /stackqueue
    M   /BalancedBrackets: https://www.hackerrank.com/challenges/balanced-brackets/problem
    M   /TaleOfTwoStacks: https://www.hackerrank.com/challenges/ctci-queue-using-two-stacks/problem
    /stringmanipulation
    E   /AlternatingCharacter: https://www.hackerrank.com/challenges/alternating-characters/problem
    E   /MakingAnagrams: https://www.hackerrank.com/challenges/ctci-making-anagrams/problem
    M   /SherlockValidString: https://www.hackerrank.com/challenges/sherlock-and-valid-string/problem
    M   /SpecialPalindromo: https://www.hackerrank.com/challenges/special-palindrome-again/problem --> TODO
    /tree
    E   /HeightOfBinaryTree: https://www.hackerrank.com/challenges/tree-height-of-a-binary-tree/problem
    E   /LowestCommonAncestor: https://www.hackerrank.com/challenges/binary-search-tree-lowest-common-ancestor/problem
    M   /HuffmanDecoding: https://www.hackerrank.com/challenges/tree-huffman-decoding/problem
    M   /ValidBinaryTree: https://www.hackerrank.com/challenges/ctci-is-binary-search-tree/problem
    /warmup
    E   /CountingValleys: https://www.hackerrank.com/challenges/counting-valleys/problem
    E   /JumpingOnTheClouds: https://www.hackerrank.com/challenges/jumping-on-the-clouds/problem
    E   /RepeatedString: https://www.hackerrank.com/challenges/repeated-string/problem
    E   /SockMerchant: https://www.hackerrank.com/challenges/sock-merchant/problem

About

Hanckerrank - Challenges solution for hackerrank problems

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages