This Forum is in read only mode now.

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

×

where are the March Cook Off editorials ?

guys, I'm clicking on the editorial link on the contest page but the page won't just open. Am I the only one who is facing this problem?

asked 25 Mar, 19:56

wingman__7's gravatar image

2★wingman__7
102
accept rate: 0%

They will be released soon. In case there seems to be more than acceptable delay we will release the setters notes at the very least.

(26 Mar, 00:03) vijju123 ♦♦5★

Editorial for MARCAPS

Find out the count of all elements in the array. Let "mx" be the maximum count, if "mx" is greater or equal to ceil(n/2) then the answer would be "No", else the answer would be "Yes".

If the array was sorted then you could just shift all the elements by "mx" and get the answer. Similarly, if the array is not sorted then map it to a sorted array, shift the elements and then restore the elements to their original indices.

You can view my solution - https://www.codechef.com/viewsolution/23662934

link

answered 25 Mar, 20:21

i_love_adhoc_k's gravatar image

3★i_love_adhoc_k
222
accept rate: 0%

You're not the only one. I am facing the same problem, wingman_7.

link

answered 25 Mar, 21:00

rapast's gravatar image

4★rapast
1
accept rate: 0%

They have been served :)

(26 Mar, 02:01) swetankmodi ♦♦6★

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:

×569
×190
×65
×29

question asked: 25 Mar, 19:56

question was seen: 319 times

last updated: 26 Mar, 02:01