Count the paths in a tree whose values add up to K — a path may start and end anywhere, as long as it only goes downwards.
Count the paths in a tree whose values add up to K — a path may start and end anywhere, as long as it only goes downwards.
Opens with the full question.