This is a repo with Datastructure and Algorithmns problem solved in Javascript.
- Install Node 6 or newer. Need to run multiple versions of Node? Use nvm or nvm-windows
- Clone this repository. -
git clone https://github.com/arunprabug/javascript-ci-testor download the zip - Make sure you're in the directory you just created. -
cd javascript-ci-test - Install Node Packages. -
npm install - Run the validate. -
npm run validateThis will run the lint and prettier scripts to check the code is property linted and formatted. - Run the test. -
npm run testThis will run the test cases configured in the project.
- Finding number of digits in a number 1
- Finding number of digits in a number 2
- Arithmentic progression
- Geometric progression
- Qudratic equation
- Mean and median
- Prime numbers
- LCM and HCF
- Factorials
- Permutation and combination
- Modular arithmetic
- Sum of n natural number
- Factorial
- Power
- Taylor series
- Taylor series using Horner rule
- Fibonacci series
- Tower of Hanoi
- Reverse
- isPalindrome
- someRecursive
- Flatten
- capitalizeFirst
- capitalizeWords
- stringNumbers
- collectStrings
- nestedEvenSum
- Array operations
- Linear search
- get, set, max and avg
- Reverse an array
- Shift an array
- Check if array is sorted
- Merge array
- Array - Union, intersection and difference
- Find missing element in an array
- Find missing element in an array method 2
- Find duplicates in sorted array
- Find duplicates in sorted array using hashing
- Find duplicates in unsorted array
- Find pair of elements with sum K
- Finding max and min in a single scan
- Array chunking
- Find length of string
- Change case of string
- Counting words and vowel in a string
- Validating a string
- Reversing a string 1
- Reversing a string 2
- Reversing a string 3
- Comparing string and check palindrome 1
- Comparing string and check palindrome 2
- Find duplicates in a string
- Find duplicates in a string using Bitwise
- Check if two strings are anagram 1
- Check if two strings are anagram 2
- Permutation of a string
- Max Chars
- Fizzbuzz
- Frequency counter
- Multiple pointer
- Sliding window
- Two pointer
- Fast and slow pointer
- Merge intervals
- Cyclic sort
- Implementation
- Counting nodes in Linked list
- Sum of all elements in Linked list
- Maximum element in a linked list
- Searching in linked list
- Remove duplicates in linked list
- Check if linked list is sorted
- Reverse a linked list
- Reverse using sliding pointers
- Reverse using recursion
- Concatenate two linked list
- Merge two linked list
- Check loop in linked list
- Finding middle point of linked list
| Dependency | Use |
|---|---|
| eslint | lints javascript |
| eslint-config-prettier | esling configuration for prettier |
| husky | git precommit hook |
| jest | test runner to run unit tests |
| prettier | code formatter |
| babel-core | Compiler to transpile new javascript to old javascript |
| babel-jest | babel helper for jest runner |
| @babel/preset-env | babel helper to preset env |