Skip to content

loutee/hackerrank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#hackerrank Contains my submission code for HackerRank challenges.

algorithms

  • warmup

    Python 2 code solutions for the following challenges:

      Solve Me First
      Simple Array Sum
      Compare the Triplets
      A Very Big Sum
      Diagonal Difference
      Plus Minus
      Staircase
      Mini Max Sum
      Birthday Cake Candles
      Time Conversion
    
  • implementation

    Python 2 code solutions for the following challenges:

      Grading Students
      Apple and Orange
      Kangaroo
    
      Breaking the Records
      Birthday Chocolate
      Divisible Sum Pairs
      Migratory Birds
      Day of the Programmer
      Bon Appetit
      Sock Merchant
      Drawing Book
      Counting Valleys
      Electronics Shop
      Cats and a Mouse
    
      Picking Numbers
    
      The Hurdle Race
      Designer PDF Viewer
      Utopian Tree
      Angry Professor
      Beautiful Days at the Movies
      Viral Advertising
      Save the Prisoner!
      Circular Array Rotation
    
      Jumping on the Clouds: Revisited
      Find Digits
      Extra Long Factorials
    
      Sherlock and Squares
    
      Cut the Sticks
    
      Repeated String
      Jumping on the Clouds
      Equalize the Array
    
      ACM ICPC Team
      Taum and B'day
    
      Encryption
    
      Modified Kaprekar Numbers
    
      Minimum Distances
      The Time in Words
      Chocolate Feast
      Service Lane
    
      Flatland Space Stations
    
      Cavity Map
      Manasa and Stones
    
      Happy Ladybugs
      Strange Counter
    
  • strings

    Python 2 code solutions for the following challenges:

      Super Reduced String
      CamelCase
      Strong Password
      Two Characters
      Caesar Cipher
      Mars Exploration
      HackerRank in a String!
      Pangrams
      Weighted Uniform Strings
      Separate the Numbers
      Funny Strings
      Gemstones
      Alternating Characters
      Beautiful Binary String
      The Love-Letter Mystery
    
      Palindrome Index
      Anagram
      Making Anagrams
      Game of Thrones - I
      Two Strings
      String Construction
      Sherlock and the Valid String
    
  • sorting

    Python 2 code solutions for the following challenges:

      Intro to Tutorial Challenges
      Insertion Sort - Part 1
      Insertion Sort - Part 2
      Correctness and the Loop Invariant
      Running Time of Algorithms
      Quicksort 1 - Partition
      Counting Sort 1
      Counting Sort 2
      The Full Counting Sort
      Closest Numbers
    
  • search

    Python 2 code solutions for the following challenges:

      Ice Cream Parlor
    
    
      Missing Numbers
      Pairs
      Sherlock and Array
    
  • greedy

    Python 2 code solutions for the following challenges:

      Minimum Absolute Difference in an Array
      Marc's Cakewalk
      Grid Challenge
      Luck Balance
    
    
      Sherlock and the Beast
      Priyanka and Toys
    
      Mark and Toys
      Greedy Florist
      Max Min
      Jim and the Orders
      Permuting Two Arrays
    
  • bit-manipulation

    Python 2 code solutions for the following challenges:

      Lonely Integer
      Maximizing XOR
      Counter Game
    
      Sum vs XOR
    
      Flipping bits
    
      Sansa and XOR
    

java

  • introduction

    Java code example solutions for the following challenges:

      Welcome to Java!
      Java Stdin and Stdout I
      Java If-Else
      Java Stdin and Stdout II
    
      Java Loops I
      Java Loops II
      Java Datatypes
      Java End-of-File
      Java Static Initializer Block
      Java Int to String
    
  • strings

    Java code example solutions for the following challenges:

      Java Strings Introduction
      Java Substring
    
      Java String Reverse
    

linux-shell

  • bash

    Bash script example solutions for the following challenges:

      Looping and Skipping
      The World of Numbers
      Comparing Numbers
      Getting Started on Conditionals
      More on Conditionals
      Arithmetic Operations
      Compute the Average
    
  • text-processing

    Bash script example solutions for the following challenges:

      Cut #1
      Cut #2
      Cut #3
      Cut #4
      Cut #5
      Cut #6
      Cut #7
      Cut #8
      Cut #9
      Head of a Text File #1
      Head of a Text File #2
      Middle of a Text File
      Tail of a Text File #1
      Tail of a Text File #2
      'Tr' Command #1
      'Tr' Command #2
      'Tr' Command #3
      Sort Command #1
      Sort Command #2
      Sort Command #3
      Sort Command #4
      Sort Command #5
      Sort Command #6
      Sort Command #7
      Uniq Command #1
      Uniq Command #2
      Uniq Command #3
      Uniq Command #4
      Paste - 1
      Paste - 2
      Paste - 3
      Paste - 4
    
  • arrays-in-bash

    Bash script example solutions for the following challenges:

      Read in an Array
      Slice an Array
    
      Concatenate an Array with Itself
      Display an Element of an Array
      Count the Number of Elements in an Array
    

python

  • introduction

    Python programs for the following challenges:

      Say "Hello, World!" With Python
      Reading Raw Input
      Python If-Else
      Arithmetic Operators
      Python: Division
      Loops
      Write a Function
      Print Function
    
  • basic-data-types

    Python programs for the following challenges:

      Lists
      Tuples
      List Comprehensions
      Find the Second Largest Number
      Nested Lists
      Finding the percentage
    
  • strings

    Python programs for the following challenges:

      sWAP cASE
      String Split and Join
      What's Your Name?
      Mutations
      Find a string
      String Validators
      Text Alignment
      Text Wrap
      Designer Door Mat
      String Formatting
      Alphabet Rangoli
      Capitalize!
    
      Merge the Tools!
    
  • sets

    Python programs for the following challenges:

      Introduction to Sets
      Symmetric Difference
      No Idea!
      Set .add()
      Set .discard(), .remove(), & .pop()
      Set .union() Operation
      Set .intersection() Operation
      Set .difference() Operation
      Set .symmetric_difference() Operation
      Set Mutations
      The Captain's Room
      Check Subset
      Check Strict Superset
    
  • math

    Python programs for the following challenges:

      Polar Coordinates
      Find Angle MBC
      Triangle Quest 2
      Mod Divmod
      Power - Mod Power
      Integers Come In All Sizes
      Triangle Quest
    
  • itertools

    Python programs for the following challenges:

      itertools.product()
      itertools.permutations()
      itertools.combinations()
      itertools.combinations_with_replacement()
      Compress the String!
    
  • collections

    Python programs for the following challenges:

      collections.Counter()
      DefaultDict Tutorial
      Collections.namedtuple()
      Collections.OrderedDict()
      Word Order
      Collections.deque()
      Piling Up!
      Company Logo
    
  • data-and-time

    Python programs for the following challenges:

      Calendar Module
    
  • errors-and-exceptions

    Python programs for the following challenges:

      Exceptions
      Incorrect Regex
    
  • classes

  • built-ins

    Python programs for the following challenges:

      Zipped!
      Input()
      Python Evaluation
      Athlete Sort
      Any or All
    
  • python-functionals

    Python 2 code solutions for the following challenges:

      Map and Lambda Function
      Validating Email Addresses With a Filter
      Reduce Function
    
  • regex-and-parsing

    Python 2 code solutions for the following challenges:

      Detect Floating Point Number
      Re.split()
      Group(), Groups(), & Groupdict()
      Re.findall() & Re.finditer()
      Re.start() & Re.end()
      Regex Substitution
      Validating Roman Numerals
      Validating phone numbers
      Validating and Parsing Email Addresses
      Hex Color Code
      HTML Parser - Part 1
      HTML Parser - Part 2
      Detect HTML Tags, Attributes and Attribute Values
      Validating UID
      Validating Credit Card Numbers
      Validating Postal Codes
      Matrix Script
    
  • xml

    Python 2 code solutions for the following challenges:

      XML 1 - Find the Score
      XML2 - Find the Maximum Depth
    
  • closures-and-decorators

    Python 2 code solutions for the following challenges:

      Standardize Mobile Number Using Decorators
      Decorators 2 - Name Directory
    
  • numpy

    Python 2 code solutions for the following challenges:

      Arrays
      Shape and Reshape
      Transpose and Flatten
      Concatenate
      Zeros and Ones
      Eye and Identity
      Array Mathematics
      Floor, Ciel and Rint
      Sum and Prod
      Min and Max
      Mean, Var, and Std
      Dot and Cross
      Inner and Outer
      Polynomials
      Linear Algebra
    

regex

  • introduction

    Java code sample solutions for the following challenges:

      Matching Specific String
      Matching Anything But a Newline
      Matching Digits & Non-Digit Characters
      Matching Whitespace & Non-Whitespace Character
      Matching Word & Non-Word Character
      Matching Start & End
    
  • character-class

    Java code sample solutions for the following challenges:

      Matching Specific Characters
      Excluding Specific Characters
      Matching Character Ranges
    
  • repetitions

    Java code sample solutions for the following challenges:

      Matching {x} Repetitions
      Matching {x,y} Repetitions
      Matching Zero Or More Repetitions
      Matching One Or More Repetitions
      Matching Ending Items
    
  • grouping-and-capturing

    Java code sample solutions for the following challenges:

      Matching Word Boundaries
      Capturing & Non-Capturing Groups
      Alternative Matching
    
  • backreferences

    Java and PHP code sample solutions for the following challenges:

      Matching Same Text Again & Again
      Backreferences To Failed Groups
      Branch Reset Groups
      Forward References
    
  • assertions

    PHP code sample solutions for the following challenges:

      Positive Lookahead
      Negative Lookahead
      Positive Lookbehind
      Negative Lookbehind
    
  • applications

About

My submissions for HackerRank challenges

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published