Hackerrank-JavaScript-Solutions
Hackerrank-JavaScript-Solutions copied to clipboard
Solved entire Easy, few Medium Problems. A total of 171/563 challenges solved by JavaScript
https://github.com/leonardomso/33-js-concepts
Functional Programming Concepts
1. **this** 2. **immutable** data objects using a linter 3. **immutable** objects and **collections** 4. data transformations using core operations like **filter, map, sort, or reduce** 5. use statements like...
bst in js
```js let node = (data) => ({ left: null, right: null, data: data }) let bst = { root: null, insert: (root = bst.root, data) => { if (root ===...
construct the array
https://www.hackerrank.com/challenges/construct-the-array/problem
High Value Palindrome
Algo ```cpp #include using namespace std; string richieRich(string s, int n, int k){ int lives=k; vector mod(n,false); string temp(s); for (int i=0;i0) temp[n/2]='9';} return temp; } int main() { int...
Maximum Palindromes
Algorithms to solve it, 1. Modular multiplicative inverse 2. Combinatorics and Permutation