Energetic Node(Hard Version)
**This is the hard version of the problem. The only difference is that, in this version, **$K_i \leq 10^{18}$**.** There’s a [tree](https://en.wikipedia.org/wiki/Tree_(data_structure)) having $N$ nodes, out of which, some nodes are **energetic**. Initially, energy of all the nodes is $0$. In the $i^{th}$ second, every **energetic** node will make the energy of itself and all its neighbours **inc
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start