×

# Chef and Interactive XOR | INTXOR | Video Editorial | December Long

 1 Video editorial of December Challenge 2018 Problem: Chef and Interactive XOR asked 18 Dec '18, 01:12 157●10 accept rate: 6% 1 Good forum practices recommend posting a small intro/description in the thread instead of just posting the link. :) (18 Dec '18, 01:42) Thanks for the suggestion :) (18 Dec '18, 01:54)

 1 Thanks a lot for the solution. I was kind of stuck on the following pattern a b c b c d a b d a c d I can find all solution using this pattern, but only if the N%4==0 answered 18 Dec '18, 23:21 2★sdfg04 11●1 accept rate: 0% you're welcome. (19 Dec '18, 02:33)
 0 Does your idea works with odd N? If ask queries in this way, the last query will have just one possibility, where all the indexes are N, like query(N, N, N). answered 18 Dec '18, 07:19 42●4 accept rate: 0% 1 For odd N only last two part will modify. N = 9 1 2 3 1 2 4 3 4 5 3 4 6 5 6 7 5 6 8 7 8 9 7 9 1 8 9 2 now using 1 and 2 question we can find 3rd and 4th elements (18 Dec '18, 09:12)
 0 "Also, Chef has an additional condition: for each index x, x may appear in all questions in total at most 3 times" is clearly given in the problem statement , so this approach would fail as index 1 is used 4 times. answered 18 Dec '18, 09:32 1●1 accept rate: 0% No, 1 is used only 3 times if N is odd also. (18 Dec '18, 09:36)
 0 hii,can anyone please figure out the bug in my code, it was giving correct answer for all the manual testcases,yet was giving WA on submission. link to my code link text answered 19 Dec '18, 22:59 1●1 accept rate: 0%
 0 My solution link text uses the same tactics as your of even and odd,still last two cases fail i am still aware why my code is failing.You can test it too. answered 21 Dec '18, 22:04 3★apower2 1 accept rate: 0%
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• 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:

×15,499
×376
×303
×102

question asked: 18 Dec '18, 01:12

question was seen: 1,249 times

last updated: 22 Dec '18, 17:27