Anran

Results 23 comments of Anran

### BFS ```javascript var maxDepth = function(root) { if(!root) return 0; let max = 0; let queue = [root]; while(queue.length) { max+=1; let len = queue.length; for(let i = 0;i

> Can you instantiate the single threaded runtime once, wrapping also the JsRuntime instantiation? I am not sure `deno_core` likes moving between tokio runtimes. I find core dump cause by...

```javascript var kthSmallest = function(root, k) { let current = root; let stack = []; let index = 0; while(current) { stack.push(current); current = current.left; } while(stack.length) { index++; let...