entries: [
['mike', 23, ['tennis', 'football']],
['nick', 41, ['eating']],
['salmon', 11, []],
['xon', 45, ['eating', 'slsls', 'cxcvx', '42324']],
],
};
// expected [{ name: 'mike', age: 23, Hobbies: ['tennis', 'football'] }];
Hey guys, is it possible to transform this object into the required format with a time complexity less then O(nxm)?
n and m being what? number of entries and number of columns?
Обсуждают сегодня