×

# Explain the public section

 0 Please explain the public section of the solution. asked 27 Nov '17, 19:35 37●5 accept rate: 0%

 1 Read this with patience. It's a great editorial for someone who wants to learn segment trees. The public section of the solution which you mentioned mainly performs two functions - Updates the segment tree (see the private section below for the working of the function change()), and queries the segment tree between l and r. I suggest you to read the editorial carefully and follow the steps, which will makes things clear. List of problems using segment tree of easy and medium difficulty along with some great resources to learn can be found here. answered 06 Dec '17, 01:34 551●1●8 accept rate: 40%
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×300

question asked: 27 Nov '17, 19:35

question was seen: 255 times

last updated: 06 Dec '17, 01:34