help me out finding mistake
It says invalid use of void expression
@pankajpoply45 in line 20 and 21, you have to pass a deque but intsead you are passing the function std::deque::pop_front it has a void return type, it does not return a deque.
i have a doubt in sample case if piyush pick 4 first then nimit pick 1 and piyush in next turn pick 3 then ans should be 7
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.