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

×

WALKBT : need Help

can someone help me in my solution https://www.codechef.com/viewsolution/15009757

asked 18 Aug '17, 19:41

ayush_codechef's gravatar image

3★ayush_codechef
517
accept rate: 0%

edited 18 Aug '17, 22:12


Your code fails on the case when the initial query is '?'.It outputs 0 while the actual output should be 1 as root is visited initially.

link

answered 18 Aug '17, 22:55

stranger7's gravatar image

5★stranger7
1464
accept rate: 27%

thanks it worked :)

(19 Aug '17, 17:01) ayush_codechef3★
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:

×227
×193
×16

question asked: 18 Aug '17, 19:41

question was seen: 285 times

last updated: 19 Aug '17, 17:01