AlgoCasts
AlgoCasts copied to clipboard
● GetAt › returns the node at given index TypeError: Cannot set property 'next' of null 79 | let lastNode = this.getLast() 80 | let newNode = new Node(data) >...
palindrome/test.js ``` ✓ palindrome function is defined (2ms) ✕ "aba" is a palindrome ✓ " aba" is not a palindrome ✓ "aba " is not a palindrome (1ms) ✓ "greetings"...
The solution should not avoid the second loop? ``` function maxChar(str) { const charMap = {}; let max = 0; let maxChar = ''; for(let element of str) { charMap[element]...
The second line should be: const Queue = require('./queue'); Instead of Q capital!
Minor issue, but it seems that it is missing an export for the `merge` function for the `sort.js` in the algorithm. Currently it is this: `module.exports = { bubbleSort, selectionSort,...
Hey, the test description didn't match the test assertion in the last `fib` test. I assumed that the description was wrong because assertion matches the test duration in the memoization...
Add additional tests for weave than handle the requirements that the weave should correctly combine lists of different lengths.