Skip to content

My solutions to HackerRank[.]com exercises. Sometimes comments in Portuguese (BR), other times in English.

License

thiagojacinto/hackerRank-exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HackerRank

Solutions NodeJS Version JDK Version

Languages

HackerRank solutions in JavaScript, maintained by Thiago Jacinto.

README Template from: Gabriel Giordano

List of Solutions

Algorithms

Type Problem Solution Difficulty Note
Angry Professor JavaScript Easy
Apple and Oranges JavaScript Easy
Between Two Sets JavaScript Easy *** NOT WORKING PROPERLY: JavaScript ISSUE #3 ***
Birthday Chocolate JavaScript Easy
Bon Appetit JavaScript Easy
Bonetrousle JavaScript Easy *** NOT WORKING PROPERLY: JavaScript ISSUE #2 ***
Breaking The Records JavaScript Easy
Day of the Programmer JavaScript Easy
Divisible Sum Pairs JavaScript Easy
Extra Long Factorials JavaScript Medium
Grading Students JavaScript Easy
Kangaroo JavaScript Easy
Migratory Birds JavaScript Easy
Sock Merchant JavaScript Easy
Utopian Tree JavaScript Easy
Warm Up Diagonal Difference JavaScript Easy
Warm Up Time Conversion JavaScript Easy
Cats and a Mouse Java 12 Easy
Counting Valleys Java 12 Easy
Drawing Book Java 12 Easy
Electronics Shop Java 12 Easy
Forming a Magic Square Java 12 Medium Inspired by Aditya N. Gupta
Picking Numbers Java 12 Easy

Java Language Proficiency

Type Problem Solution Difficulty Using
1D Array Java 12 Easy simple array populate with scanner.system(in)
1D Array (Part 2) Java 12 Medium Adapted from @Kirandm; Using Depth First Search concept
2D Array Java 12 Easy sum elements that represents a hourglass in a 6x6 matrix
Anagrams Java 12 Easy String's .toArray(); char[] $ int[]; uniqueChars in char[]
ArrayList Java 12 Easy Arraylist implem. & try_catch
BigDecimal Java 12 Medium ArrayList; .sort( (a,b) -> func )
BigInteger Java 12 Easy simple String input converted to BigInteger
Currency Formatter Java 12 Easy Locale clas: use and create; NumberFormat and .getCurrencyInstance
Date And Time Java 12 Easy LocalData: .of and .getDayOfWeek()
Deque Java 12 Medium Fisrt encounter with Deque idea; used Java8 .stream() to count values of Deque 'array'
Hashset Java 12 Easy Hashset implementation fast solution & if & else slower solution
Inheritance 2 Java 12 Easy class Extends, .getClass() and . getSuperClass()
List Java 12 Easy LinkedList's method 'add(INDEX, value)';
Map Java 12 Easy Map Interface & HashMap implementation
Regex Java 12 Easy RegEx; class Pattern.matches
Regex 2 Java 12 Easy class Pattern.compile(); .compile.matcher(); .matcher.find()
Stack Java 12 Medium Stack implem. with push() & pop() to verify admissibility
Static Initializer Block Java 12 Easy Static; try-catch; if-else
String Tokens Java 12 Easy String: trim(), split() and isEmpty()
String Reverse Java 12 Easy char.charAt()
String Introduction Java 12 Easy String: length, charAt(), toUpperCase(), substring()
SubArray Java 12 Easy Solution without map() implementation
Substring Comparisons Java 12 Easy String[]; while repetion; String.charAt()
Syntax Checker Java 12 Easy Regex; Pattern.compile(Scanner.nextLine()); try-catch
Excpetion Handling Java 12 Easy Simple exception handle throws & throw
Tag Content Extractor Java 12 Medium Regex; Pattern.compile(Scanner.nextLine()); Matcher.find() & .group(int i); String str.replaceFisrt(Regex, "replacement"
Valid Username Regular Expression Java 12 Easy Regex validating sentenses from input
Datatypes Java 12 Easy Int data types: byte, short, int and long
End Of File Java 12 Easy Scanner: System.in, hasNext, close; while repetion
If and Else Java 12 Easy If, else if and else
Loops I Java 12 Easy for repetion
Loops II Java 12 Easy for; Math.pow(base, expoent)
Output Formatting Java 12 Easy for; (String) converting from int
Stdin and Stout II Java 12 Easy Sysout some types of var: double, String and int

About

My solutions to HackerRank[.]com exercises. Sometimes comments in Portuguese (BR), other times in English.

Topics

Resources

License

Stars

Watchers

Forks