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

×

Approach for Cooking Game

Please share your approach for cooking game in February cook-off.

asked 20 Feb '17, 00:11

hrushikesh_t's gravatar image

4★hrushikesh_t
534
accept rate: 0%


put arr[1] = 1 , if arr[i] = x , then put arr[i - 1] = x - 1 , arr[i - 2] = x - 2 ... till it becomes 1 , now answer is just 2 ^ (count of -1's).

link

answered 20 Feb '17, 00:23

rajat1603's gravatar image

7★rajat1603
1.0k112
accept rate: 4%

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:

×66

question asked: 20 Feb '17, 00:11

question was seen: 360 times

last updated: 20 Feb '17, 00:32