wverything i mentioned above can be done in O(n) but sorting part is
nlogn . so that is what i was saying. can you specify where i was not
clear ?

On Thu, Dec 23, 2010 at 9:22 PM, Nikhil Agarwal
<nikhil.bhoja...@gmail.com> wrote:
> @ankur can you hint your nlogn solution?
>
> On Thu, Dec 23, 2010 at 9:08 PM, Ankur Khurana <ankur.kkhur...@gmail.com>
> wrote:
>>
>> it is just like 0/1 knapsack problem with maximum weight of knapsack
>> as 40. but in this case that is minimum that we have to calculate.
>> calculate marks/time for every element . then try finding the elements
>> with max value/time to fulfill the quota of marks. i dont know if this
>> can be done in O(n) but it can be certainly done in nlogn. any other
>> views ?
>>
>> On Thu, Dec 23, 2010 at 9:03 PM, Davin <dkthar...@googlemail.com> wrote:
>> > Thanks for reply. I am looking for O(n) for solution.
>> >
>> > Davin
>> >
>> > On Dec 23, 8:29 pm, snehal jain <learner....@gmail.com> wrote:
>> >> hint : use dp
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> On Thu, Dec 23, 2010 at 8:30 PM, Davin <dkthar...@googlemail.com>
>> >> wrote:
>> >> > Marks for Questions(1,6): {10,15,20,25,10,20}
>> >> > Time for Each Questions(1,6) : { 2, 4,3,4, 2,4}
>> >> > Passing Marks : 40 Out of 100
>> >>
>> >> > Find Questions with minimum time to pass the exam?
>> >>
>> >> > On Dec 23, 7:04 pm, juver++ <avpostni...@gmail.com> wrote:
>> >> > > Please clarify the problem statement. Provide example.
>> >> > > From the first view problem seems to be unclear.
>> >>
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups
>> >> > "Algorithm Geeks" group.
>> >> > To post to this group, send email to algoge...@googlegroups.com.
>> >> > To unsubscribe from this group, send email to
>> >> >
>> >> > algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups
>> >> > .com>
>> >> > .
>> >> > For more options, visit this group at
>> >> >http://groups.google.com/group/algogeeks?hl=en.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Algorithm Geeks" group.
>> > To post to this group, send email to algoge...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > algogeeks+unsubscr...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/algogeeks?hl=en.
>> >
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to algoge...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> algogeeks+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>
>
> --
> Thanks & Regards
> Nikhil Agarwal
> Senior Undergraduate
> Computer Science & Engineering,
> National Institute Of Technology, Durgapur,India
> http://tech-nikk.blogspot.com
> http://beta.freshersworld.com/communities/nitd
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algoge...@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to