Skip to main content

All Questions

Filter by
Sorted by
Tagged with
6 votes
3 answers
2k views

Missing level of technical depth (Flatten Tree)

I recently have given a coding test in a reputable IT company. There were three coding questions. They refused me by saying that as we felt they didn't demonstrate the level of technical depth we'...
AAhad's user avatar
  • 409
8 votes
2 answers
11k views

Returning a list of the values from the binary tree

I want to return a list of the values from the binary tree. Is there a shorter and more efficient way to write the method for numbers? ...
muros's user avatar
  • 181
6 votes
5 answers
11k views

DFS in Binary Tree

I have written this code for DFS in a binary tree and would like improvements on it. ...
Mehrdad's user avatar
  • 449
4 votes
2 answers
1k views

Javascript Tree Class

I got caught in the trap of implementing my own data structure. I've created a very general tree structure, where each node gets one parent, some children, and holds a value. I'm mostly looking for ...
Alex F's user avatar
  • 443