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

×

[closed] Compiler and parsers

Should the sequence always begin with "<" Is the answer to the input ><> 0 or 2?

asked 04 May '14, 16:03

ironmandhruv's gravatar image

4★ironmandhruv
333239
accept rate: 20%

closed 04 May '14, 17:18

skbly7's gravatar image

2★skbly7
1.9k91724

Discussing is not allowed in live contests!Please read the guidelines

(04 May '14, 16:49) tech_boy2★

Answer is 0.

(04 May '14, 17:16) filsoft3★

<>>>>>><> o/p for this input 9/2

(08 May '14, 17:35) anmolgarg272★
1

what is the answer of this <<> ?

(09 May '14, 08:45) piyush84902★

The question has been closed for the following reason "Ongoing contest" by skbly7 04 May '14, 17:18


I wish i could help you but its an ongoing contest. Just a small hint - Give stress on the word "Valid & Longest Prefix". Combine both and you'll solve it. :)

Read the statement again, It is no where mentioned that expression will always begin with '<'

link

answered 04 May '14, 17:14

Illusion03's gravatar image

2★Illusion03
8425
accept rate: 16%

edited 04 May '14, 17:16

Discussions for live contest's questions is not allowed.
Moreover, for any clarifications comment in question's page only. For your question : http://www.codechef.com/MAY14/problems/COMPILER

If your question would be genuine, you would get answer there.

link

answered 04 May '14, 17:16

skbly7's gravatar image

2★skbly7
1.9k91724
accept rate: 8%

sir how can we give string array of size 10^6 ........plz help me

(08 May '14, 19:17) dileep24361★

@dileep2436, please look up tutorials of previous problems. There is a huge treasure out there. You will be able to find helpful hints.

(09 May '14, 15:50) nnovoice2★

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:

×99
×4

question asked: 04 May '14, 16:03

question was seen: 1,909 times

last updated: 09 May '14, 15:51