// 1. Circular Array ko handle karne ke liye double size ka array banaya // Kyunki array circular hai, isliye end aur start ko connect karne ke liye nums ko 2 baar copy kiya.
//Approach (Using Binary Lifting): Build an ancestor table via DFS + binary lifting and answer each LCA query by lifting nodes using binary bits.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results