leetcode-the-hard-way icon indicating copy to clipboard operation
leetcode-the-hard-way copied to clipboard

Tutorial writeup - Segment Tree

Open wingkwong opened this issue 2 years ago • 8 comments

It should cover

  • overview
  • basic segment tree (with LC problems walk through)
  • dynamic segment tree (with LC problems walk through)
  • lazy propagation (with LC problems walk through)
  • suggested problems

For those who wanna take it, please state 2 - 3 LC problems that you're gonna use for this writeup. Prefer someone who has deep knowledge on this topic.

wingkwong avatar Oct 07 '22 05:10 wingkwong

Hey I have basic knowledge of segment tree and willing to work on this issue. Basic segment tree. range-frequency-queries range-sum-query-mutalble. And I have started researching about dynamic segment tree and lazy propagation. Can you assign it to me.

Dhruvil-Lakhtaria avatar Oct 14 '22 07:10 Dhruvil-Lakhtaria

@Dhruvil-Lakhtaria assigned. remember to read CONTRIBUTING.md first.

wingkwong avatar Oct 14 '22 07:10 wingkwong

I am done with

  • basic segment tree (tutorial + solution).
  • lazy propagation (tutorial). can I make a pull request for this much and get it reviewed. I will start working on the rest after review if that's fine.

Dhruvil-Lakhtaria avatar Oct 14 '22 13:10 Dhruvil-Lakhtaria

PR added #278

Dhruvil-Lakhtaria avatar Oct 18 '22 09:10 Dhruvil-Lakhtaria

Unassigned due to inactivity.

wingkwong avatar Nov 18 '22 11:11 wingkwong

Hello,

I'm eager to work on this issue and prepare a comprehensive tutorial writeup covering the following topics:

  1. Overview: I'll provide an introduction to the concept of segment trees and their applications.
  2. Basic Segment Tree (with LC problems walk-through): I'll explain the basics with LeetCode problems like LeetCode 307 - Range Sum Query - Mutable and LeetCode 315 - Count of Smaller Numbers After Self.
  3. Dynamic Segment Tree (with LC problems walk-through): I'll delve into dynamic segment trees using examples from LeetCode 699 - Falling Squares and LeetCode 732 - My Calendar III.
  4. Lazy Propagation (with LC problems walk-through): I'll explore lazy propagation techniques with a focus on optimizing solutions, using LeetCode 307 - Range Sum Query - Mutable (Revisited) and LeetCode 715 - Range Module.
  5. Suggested Problems: I'll recommend additional LeetCode problems like LeetCode 218 - The Skyline Problem and LeetCode 327 - Count of Range Sum for further practice.

Thank you!

SHAY2407 avatar Oct 04 '23 09:10 SHAY2407

@SHAY2407 Go ahead.

wingkwong avatar Oct 04 '23 10:10 wingkwong

Unassigned due to inactivity

wingkwong avatar May 08 '24 16:05 wingkwong