1 min readAug 10, 2020
Was there something missing? You missed the binary search approach by taking 2 values l and r and finding answer as r-l+1.
Was there something missing? You missed the binary search approach by taking 2 values l and r and finding answer as r-l+1.
⚡️IIT Roorkee 2022. I’m interested in tech, and I like to write code, build software and read interesting things. More at adityakarad.com