You are not logged in. Please login at www.codechef.com to post your questions!

×

understanding segment tree

Hello guys, I need a little help implementing and understanding segment tree data structure. I have read many online tutorials and I understand the concept pretty well. But when comes to implementing the code, my knowledge falls out of the sky. I am not getting desired output in any of my attempts. What should I do next?

asked 17 Aug '14, 10:56

dragonemperor's gravatar image

3★dragonemperor
89321134
accept rate: 10%


link this tutorial contains implementation.

link

answered 17 Aug '14, 13:51

neo1tech9_7's gravatar image

6★neo1tech9_7
8.5k51537
accept rate: 19%

Refer this

link

answered 17 Aug '14, 14:00

damn_me's gravatar image

3★damn_me
2.6k21336
accept rate: 24%

This link contains list of problems along with nice explanation of segment tree. This should clear all your problems :)

link

answered 17 Aug '14, 15:06

asif_mak's gravatar image

1★asif_mak
7041611
accept rate: 19%

Try to share the code via ideone link . Any one of us could help you debug it

link

answered 17 Aug '14, 15:26

thechamp103's gravatar image

3★thechamp103
597411
accept rate: 16%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • 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:

×1,755

question asked: 17 Aug '14, 10:56

question was seen: 512 times

last updated: 17 Aug '14, 15:26