โ† Josh Technology questions

Sum of Nodes at K Distance in Anti-BST

Filed under Josh Technology

The question

Given an anti-BST and a target value, return the sum of all nodes that are at K distance away from the target value in O(1) space.

No write-up yet. Related questions below have one.

Related Josh Technology questions

Collected from public candidate posts and coding forums. Updated Nov 2026.