Segment Tree | Introduction | LeetCode 307. Range Sum Query | Introduction: Part-1 | Code + Template

  Рет қаралды 422

Amit Dhyani

Amit Dhyani

Күн бұрын

Пікірлер
@studyplanet4656
@studyplanet4656 2 ай бұрын
Your content is top notch 👍👍
@nidhimishra2436
@nidhimishra2436 8 ай бұрын
thanks for segment trees if possible then plzz try to start DP series as well !
@amit_dhyani
@amit_dhyani 8 ай бұрын
Thank you for your continuous support. Han jarur, i will try
@adityapushkar8656
@adityapushkar8656 7 ай бұрын
Will it be build(tree,nums,2*node+1,start,mid) or build(tree,nums,2*node+1,mid+1,end) ?
@amit_dhyani
@amit_dhyani 7 ай бұрын
Ohh, Thanks for pointing out. Yes it will be build(mid+1, end)
@Fam-m4i
@Fam-m4i 5 ай бұрын
It’s possible to build tree in 2*N space bro.
@amit_dhyani
@amit_dhyani 5 ай бұрын
@user-tt7po9td3x yes bro there are techniques in which we can store segment tree in less than 4n. But the technique that i have discussed will take atmost 4n. For your reference you can refer it. stackoverflow.com/questions/39542049/segment-tree-space-requirement Another reference www.quora.com/Why-does-a-segment-tree-need-a-4n-size-array-Why-not-2n-1 You can refer some other resource as well
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 268 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Build ANYTHING With AI Agents For FREE! (DeepSeek-R1 Beats ChatGPT)
21:43
Budget and New Tax Law will apply for 2025 & 2026 Exams ????
10:38
CA Bhanwar Borana
Рет қаралды 73 М.
Machine learning under 20 mins!!!
15:20
HERMAN
Рет қаралды 18
Get Started with GitHub Copilot in VS Code (2025)
21:27
Visual Studio Code
Рет қаралды 10 М.