โ† Paytm questions

Remove nodes not in path with sum >= k

Filed under Paytm

The question

Given a binary tree (not necessarily a BST), remove all nodes that do not lie in any path with a sum greater than or equal to k.

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

Related Paytm questions

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