Which two candidates share the same desk. Please help me | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Which two candidates share the same desk. Please help me

var candidates = [ {'name':'jhon', 'id':101, 'info':{ 'Address':[{'city':'NY','country':'USA'},{'city':'NJ','country':'USA'}], 'mobileNo':[9999999999] }, 'desk':[ {'updated': true,'updatedDesk':1}, {'updated': false,'updatedDesk':2} ] }, {'name':'steven', 'id':102, 'info':{ 'Address':[{'city':'Texas','country':'USA'},{'city':'Mexico','country':'South America'}], 'mobileNo':[9999911111,2222255555] }, 'desk':[ {'updated': false,'updatedDesk':1}, {'updated': false,'updatedDesk':2}, {'updated': true,'updatedDesk':5} ] }, {'name':'smith', 'id':103, 'info':{ 'Address':[{'city':'A&M','country':'USA'},{'city':'Brazel','country':'South America'}], 'mobileNo':[1111999999,2222266666] }, 'desk':[ {'updated': false,'updatedDesk':3}, {'updated': true,'updatedDesk':2} ] }, {'name':'james', 'id':104, 'info':{ 'Address':[{'city':'A&M','country':'USA'},{'city':'Brazel','country':'South America'}], 'mobileNo':[1111999999,2222266666] }, 'desk':[ ] }, {'name':'marry', 'id':105, 'desk':

9th Dec 2021, 5:58 AM
ramisetti saidurga
ramisetti saidurga - avatar
1 Answer
+ 1
Your code is truncated because it's too big to fit in the thread's Description. Please edit your thread's Description and put a link to a saved code bit in place of the raw text code, so we see a complete version ☝ Here's how we share code links ... https://www.sololearn.com/post/75089/?ref=app
9th Dec 2021, 6:22 AM
Ipang