Praba Prakash

Results 8 comments of Praba Prakash

1. A billion and 7 is prime. 2. Basic modular arithmetic 3. Fermat’s little theorem 4. Exponentiation by squaring 5. Precomputing tricks

1. Currying - https://javascript.info/currying-partials

https://gist.github.com/axelpale/3118596 k combinations ```js const k_combinations = (set, k) => { if (k > set.length || k [...acc, [cur]], []) } let combs = [], tail_combs = [] for (let...

https://repl.it/repls/FairFaroffMedian

js solution ```js function highestValuePalindrome(s, n, k) { let lives = k; let mod = new Array(n).fill(false); let temp = s.split(''); for (let i = 0; i < n /...

@yuviDX will update you sooner

Please check other playlists