Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yeonjuan/hackerrank-js
Hackerrank problem solving with javascript
https://github.com/yeonjuan/hackerrank-js
10daysofjavascript algorithms coding-challenge data-structures hackerrank interview-preparation javascript problem-solving
Last synced: 16 days ago
JSON representation
Hackerrank problem solving with javascript
- Host: GitHub
- URL: https://github.com/yeonjuan/hackerrank-js
- Owner: yeonjuan
- Created: 2019-06-16T11:05:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-18T04:23:59.000Z (almost 5 years ago)
- Last Synced: 2024-10-11T17:41:33.461Z (about 1 month ago)
- Topics: 10daysofjavascript, algorithms, coding-challenge, data-structures, hackerrank, interview-preparation, javascript, problem-solving
- Language: JavaScript
- Homepage:
- Size: 200 KB
- Stars: 16
- Watchers: 5
- Forks: 3
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# Hackerrank-js
Hackerrank Problem Solving with Javascript.
## Table of contents
* [Available Scripts](#Available-Scripts)
* [Problems and Solutions](#Problems-and-Solutions)
* [10 Days Of Javascript](#10-Days-Of-Javascript)
* [Interview Preparation Kit](#Interview-Preparation-Kit)
* [Algorithms](#Algorithms)
* [Data Structures](#Data-Structures)
## Available ScriptsIn the project directory, you can run:
### `npm run lint`
Runs the linter.
### `npm run create-readme`
Generates the README.md.
## Problems and Solutions### 10 Days Of Javascript
#### Day0
| Difficulty | Problem | Solution |
| --- | --- | --- |
| Easy | [Data Types](https://www.hackerrank.com/challenges/js10-data-types/problem) | [Solution](./10-Days-Of-Javascript/Day0/data-types.js)|
| Easy | [Hello, World!](https://www.hackerrank.com/challenges/js10-hello-world/problem) | [Solution](./10-Days-Of-Javascript/Day0/hello-world.js)|
#### Day1
| Difficulty | Problem | Solution |
| --- | --- | --- |
| Easy | [Arithmetic Operators](https://www.hackerrank.com/challenges/js10-arithmetic-operators/problem) | [Solution](./10-Days-Of-Javascript/Day1/arithmetic-oprators.js)|
| Easy | [Functions](https://www.hackerrank.com/challenges/js10-function/problem) | [Solution](./10-Days-Of-Javascript/Day1/functions.js)|
| Easy | [Let and Const](https://www.hackerrank.com/challenges/js10-let-and-const/problem) | [Solution](./10-Days-Of-Javascript/Day1/let-and-const.js)|
#### Day2
| Difficulty | Problem | Solution |
| --- | --- | --- |
| Easy | [Conditional Statements: If-Else](https://www.hackerrank.com/challenges/js10-if-else/problem) | [Solution](./10-Days-Of-Javascript/Day2/conditional-statements-if-else.js)|
| Easy | [Conditional Statements: Switch](https://www.hackerrank.com/challenges/js10-switch/problem) | [Solution](./10-Days-Of-Javascript/Day2/conditional-statements-switch.js)|
| Easy | [Loops](https://www.hackerrank.com/challenges/js10-loops/problem) | [Solution](./10-Days-Of-Javascript/Day2/loops.js)|
#### Day3
| Difficulty | Problem | Solution |
| --- | --- | --- |
| Easy | [Arrays](https://www.hackerrank.com/challenges/js10-arrays/problem) | [Solution](./10-Days-Of-Javascript/Day3/arrays.js)|
| Easy | [Throw](https://www.hackerrank.com/challenges/js10-throw/problem) | [Solution](./10-Days-Of-Javascript/Day3/throw.js)|
| Easy | [Try, Catch, and Finally](https://www.hackerrank.com/challenges/js10-try-catch-and-finally/problem) | [Solution](./10-Days-Of-Javascript/Day3/try-catch-and-finally.js)|
#### Day4
| Difficulty | Problem | Solution |
| --- | --- | --- |
| Easy | [Classes](https://www.hackerrank.com/challenges/js10-class/problem) | [Solution](./10-Days-Of-Javascript/Day4/classes.js)|
| Easy | [Count Objects](https://www.hackerrank.com/challenges/js10-count-objects/problem) | [Solution](./10-Days-Of-Javascript/Day4/count-objects.js)|
| Easy | [Create a Rectangle Object](https://www.hackerrank.com/challenges/js10-objects/problem) | [Solution](./10-Days-Of-Javascript/Day4/create-a-rectangle-object.js)|
#### Day5
| Difficulty | Problem | Solution |
| --- | --- | --- |
| Easy | [Arrow Functions](https://www.hackerrank.com/challenges/js10-arrows/problem) | [Solution](./10-Days-Of-Javascript/Day5/arrow-functions.js)|
| Easy | [Inheritance](https://www.hackerrank.com/challenges/js10-inheritance/problem) | [Solution](./10-Days-Of-Javascript/Day5/inheritance.js)|
| Easy | [Template Literals](https://www.hackerrank.com/challenges/js10-template-literals/problem) | [Solution](./10-Days-Of-Javascript/Day5/template-literals.js)|**[⬆ back to top](#Table-of-contents)**
---
### Interview Preparation Kit
#### Arrays
| Difficulty | Problem | Solution |
| --- | --- | --- |
| Easy | [2D Array - DS](https://www.hackerrank.com/challenges/2d-array/problem) | [Solution](./Interview-Preparation-Kit/Arrays/2d-array-ds.js)|
| Easy | [Left Rotation](https://www.hackerrank.com/challenges/ctci-array-left-rotation/problem) | [Solution](./Interview-Preparation-Kit/Arrays/left-rotation.js)|
#### String-Manipulation
| Difficulty | Problem | Solution |
| --- | --- | --- |
| Easy | [Alternating Characters](https://www.hackerrank.com/challenges/alternating-characters/problem) | [Solution](./Interview-Preparation-Kit/String-Manipulation/alternating-characters.js)|
#### Dictionary-and-Hashmap
| Difficulty | Problem | Solution |
| --- | --- | --- |
| Medium | [Count Triplets](https://www.hackerrank.com/challenges/count-triplets-1/problem) | [Solution](./Interview-Preparation-Kit/Dictionary-and-Hashmap/count-triplet.js)|
#### Strings
| Difficulty | Problem | Solution |
| --- | --- | --- |
#### Warm-up-Challenges
| Difficulty | Problem | Solution |
| --- | --- | --- |
| Easy | [Sock Merchant](https://www.hackerrank.com/challenges/sock-merchant/problem) | [Solution](./Interview-Preparation-Kit/Warm-up-Challenges/sock-merchant.js)|**[⬆ back to top](#Table-of-contents)**
---
### Algorithms
#### Constructive-Algorithms
| Difficulty | Problem | Solution |
| --- | --- | --- |
| Medium | [New Year Chaos](https://www.hackerrank.com/challenges/new-year-chaos/problem) | [Solution](./Algorithms/Constructive-Algorithms/new-year-chaos.js)|
#### Implementation
| Difficulty | Problem | Solution |
| --- | --- | --- |
| Easy | [Counting Valleys](https://www.hackerrank.com/challenges/counting-valleys/problem) | [Solution](./Algorithms/Implementation/counting-valleys.js)|
#### Sorting
| Difficulty | Problem | Solution |
| --- | --- | --- |
| Easy | [Big Sorting](https://www.hackerrank.com/challenges/big-sorting/problem) | [Solution](./Algorithms/Sorting/big-sorting.js)|
| Easy | [Counting Sort 1](https://www.hackerrank.com/challenges/countingsort1/problem) | [Solution](./Algorithms/Sorting/counting-sort-1.js)|
| Easy | [Find the Median](https://www.hackerrank.com/challenges/find-the-median/problem) | [Solution](./Algorithms/Sorting/find-the-median.js)|
| Easy | [Intro to Tutorial Challenges](https://www.hackerrank.com/challenges/tutorial-intro/problem) | [Solution](./Algorithms/Sorting/intro-to-tutorial-challenges.js)|
#### String
| Difficulty | Problem | Solution |
| --- | --- | --- |
| Easy | [Alternating Characters](https://www.hackerrank.com/challenges/alternating-characters/problem) | [Solution](./Algorithms/String/alternating-characters.js)|
| Easy | [Caesar Cipher](https://www.hackerrank.com/challenges/caesar-cipher-1/problem) | [Solution](./Algorithms/String/caesar-cipher.js)|
| Easy | [CamelCase](https://www.hackerrank.com/challenges/camelcase/problem) | [Solution](./Algorithms/String/camelCase.js)|
| Easy | [Funny String](https://www.hackerrank.com/challenges/funny-string/problem) | [Solution](./Algorithms/String/funny-string.js)|
| Easy | [Game of Thrones - I](https://www.hackerrank.com/challenges/game-of-thrones/problem) | [Solution](./Algorithms/String/game-of-thrones-1.js)|
| Easy | [Gemstones](https://www.hackerrank.com/challenges/gem-stones/problem) | [Solution](./Algorithms/String/gemstones.js)|
| Easy | [HackerRank in a String!](https://www.hackerrank.com/challenges/hackerrank-in-a-string/problem) | [Solution](./Algorithms/String/hackerrank-in-a-string.js)|
| Easy | [Making Anagrams](https://www.hackerrank.com/challenges/making-anagrams/problem) | [Solution](./Algorithms/String/making-anagrams.js)|
| Easy | [Mars Exploration](https://www.hackerrank.com/challenges/mars-exploration/problem) | [Solution](./Algorithms/String/mars-exploration.js)|
| Easy | [Pangrams](https://www.hackerrank.com/challenges/pangrams/problem) | [Solution](./Algorithms/String/pangrams.js)|
| Easy | [Separate the Numbers](https://www.hackerrank.com/challenges/separate-the-numbers/problem) | [Solution](./Algorithms/String/separate-the-numbers.js)|
| Easy | [String Construction](https://www.hackerrank.com/challenges/string-construction/problem) | [Solution](./Algorithms/String/string-construction.js)|
| Easy | [Strong Password](https://www.hackerrank.com/challenges/strong-password/problem) | [Solution](./Algorithms/String/strong-password.js)|
| Easy | [Super Reduced String](https://www.hackerrank.com/challenges/reduced-string/problem) | [Solution](./Algorithms/String/super-reduced-string.js)|
| Easy | [The Love-Letter Mystery](https://www.hackerrank.com/challenges/the-love-letter-mystery/problem) | [Solution](./Algorithms/String/the-love-letter-mystery.js)|
| Easy | [Two Characters](https://www.hackerrank.com/challenges/two-characters/problem) | [Solution](./Algorithms/String/two-characters.js)|
| Easy | [Two Strings](https://www.hackerrank.com/challenges/two-strings/problem) | [Solution](./Algorithms/String/two-strings.js)|
#### Warmup
| Difficulty | Problem | Solution |
| --- | --- | --- |
| Easy | [Compare the Triplets](https://www.hackerrank.com/challenges/compare-the-triplets/problem) | [Solution](./Algorithms/Warmup/compare-the-triplets.js)|
| Easy | [Mini-Max Sum](https://www.hackerrank.com/challenges/mini-max-sum/problem) | [Solution](./Algorithms/Warmup/mini-max-sum.js)|
| Easy | [Simple Array Sum](https://www.hackerrank.com/challenges/simple-array-sum/problem) | [Solution](./Algorithms/Warmup/simple-array-sum.js)|
| Easy | [Solve Me First](https://www.hackerrank.com/challenges/solve-me-first/problem) | [Solution](./Algorithms/Warmup/solve-me-first.js)|**[⬆ back to top](#Table-of-contents)**
---
### Data Structures
#### Arrays
| Difficulty | Problem | Solution |
| --- | --- | --- |
| Medium | [Sparse Arrays](https://www.hackerrank.com/challenges/sparse-arrays/problem) | [Solution](./Data-Structures/Arrays/sparse-array.js)|
#### Greedy
| Difficulty | Problem | Solution |
| --- | --- | --- |
| Easy | [Minimum Absolute Difference in an Array](https://www.hackerrank.com/challenges/minimum-absolute-difference-in-an-array/problem) | [Solution](./Data-Structures/Greedy/minimum-absolute-difference-in-an-array.js)|
#### Implementation
| Difficulty | Problem | Solution |
| --- | --- | --- |
| Easy | [Grading Students](https://www.hackerrank.com/challenges/grading/problem) | [Solution](./Data-Structures/Implementation/grading-students.js)|
#### LinkedLists
| Difficulty | Problem | Solution |
| --- | --- | --- |
| Easy | [Delete duplicate-value nodes from a sorted linked list](https://www.hackerrank.com/challenges/delete-duplicate-value-nodes-from-a-sorted-linked-list/problem) | [Solution](./Data-Structures/LinkedLists/delete-duplicate-value-nodes-from-a-sorted-linked-list.js)|
| Easy | [Insert a node at a specific position in a linked list](https://www.hackerrank.com/challenges/insert-a-node-at-a-specific-position-in-a-linked-list/problem) | [Solution](./Data-Structures/LinkedLists/insert-a-node-at-a-specific-position-in-a-linked-list.js)|
| Easy | [Insert a Node at the Tail of a Linked List](https://www.hackerrank.com/challenges/insert-a-node-at-the-tail-of-a-linked-list/problem) | [Solution](./Data-Structures/LinkedLists/insert-a-node-at-the-tail-of-a-linked-list.js)|
| Easy | [Print the Elements of a Linked List](https://www.hackerrank.com/challenges/print-the-elements-of-a-linked-list/problem) | [Solution](./Data-Structures/LinkedLists/print-the-elements-of-a-linked-list.js)|**[⬆ back to top](#Table-of-contents)**
---