×

 0 This is the link to the question http://www.spoj.com/problems/PT07Z/ . And Link to my solution https://repl.it/@NikhilAgrawal/TanPlumGreatargus . I am not getting for what case is my answer wrong? asked 14 Dec '17, 23:36 4★kaneki13 64●5 accept rate: 16%

 1 In line 51, it should be $if\ (mx < dist[i])$ instead of $if\ (mx > dist[i])$ Rest looks correct and should get an AC. answered 19 Dec '17, 16:40 1.1k●5 accept rate: 17% 1 Thanks! Silly mistake, It was! (20 Dec '17, 00:10) kaneki134★
 0 INPUT: 5 1 2 2 3 1 4 4 5  YOUR OUTPUT: 2 CORRECT OUTPUT: 4 answered 18 Dec '17, 17:10 1.6k●2●9 accept rate: 23%
 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:

×18

question asked: 14 Dec '17, 23:36

question was seen: 173 times

last updated: 20 Dec '17, 00:10