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


Minion Chef and Bananas (MINEAT) .....Please tell me what's wrong with my solution

This is the question:

This is my solution -

My solution gives correct answer for sample test cases. I know this solution will not get me through Subtask2 but I think it should have cleared Subtask1. Please help.

asked 15 Jun '18, 16:22

bipul1895's gravatar image

accept rate: 0%

"Chef would like to make sure that she can finish eating all bananas by that time" What you are doing is checking if time == hour. if(time<=hour) then also it will do, because she just wants to finish it before her mother comes.


answered 15 Jun '18, 17:15

siddharthp538's gravatar image

accept rate: 11%

edited 15 Jun '18, 17:17

thanks a lot

(15 Jun '18, 17:18) bipul18952★
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 15 Jun '18, 16:22

question was seen: 161 times

last updated: 15 Jun '18, 17:24