Wed 09:24
Thanks
Wed 09:24
Let me try this out
Wed 09:24
Okay makes sense
Wed 09:22
But how do we know which ingredient goes to which queue
Wed 09:22
Yea
Wed 09:22
Ohh
Wed 09:20
If we choose wrong ones then we may not be able to cook
Wed 09:20
I feel it's a greedy question because we need to choose only those dishes which will help us cook food
Wed 09:19
Any day he doesn't cook is denoted by -
Wed 09:19
Basically chef wants to cook with 3 ingredients out of which 2 ingredients can be same
Wed 09:16
one of my friends got thid question and we are not sure how to solve this...
Wed 09:16
do u know how to solve this question

https://python-forum.io/thread-24071.html
Wed 09:15
@JohnRennie hi
Jul 19 08:39
hellio
Jul 11 18:13
hello
Jul 5 09:06
hi
Jun 21 10:18
hi
Jun 16 13:22
hi
Jun 10 21:42
Hello
Jun 1 04:59
hello
May 26 07:16
helli
May 19 15:28
Hello
May 11 06:05
hi
May 4 07:13
@JohnRennie thanks...i almost forgot this time
Apr 21 11:41
Hi
Apr 13 07:52
hi
Apr 7 07:26
Hi
Mar 31 05:49
ohkay.I will try that then
Mar 30 09:04
but the porblem is my solution is failing at some testcase and i guess its because we need to calculate for both medians in case of even length of elements in grid.....is there a way to know which median will give us the minimum ansswer behorehand if possible
Mar 30 09:03
i calculated the median and then we can get the ans from this since median will be closest to any elemnt in the grid
Mar 30 09:02
so i am trying to solve this - leetcode.com/problems/…
Mar 30 09:02
@JohnRennie Hi
Mar 27 11:07
i will let u know xD
Mar 27 11:07
thanks for the algo
Mar 27 11:07
i will try this now
Mar 27 11:06
yes
Mar 27 11:06
i think it should striclty be 2 hotizontal or 2 vertical
Mar 27 11:04
it does say we need either 2 vertical or 2 hotizontal
Mar 27 11:03
ohkay' makes sense
Mar 27 11:01
how do we know which is the case
Mar 27 11:01
or vertical
Mar 27 11:00
but the line can be horizontal too also
Mar 27 11:00
okay
Mar 27 11:00
yup
Mar 27 10:59
makes sense
Mar 27 10:59
yes
Mar 27 10:55
ok
Mar 27 10:53
yes
Mar 27 10:52
ok
Mar 27 10:50
yeah...finding that line seems a bit complicated for me