Pergunta de entrevista da empresa Pando

Leetcode - sum of two Leetcode - sum of two largest

Resposta da entrevista

Sigiloso

29 de nov. de 2021

Sum of two - easy question - either by brute force or by using new Map() and saving the complement. Sum of two largest - medium - 1. by writing an utils function to identify the 1st and 2nd largest items in the array. 2. This approach is to sort the arrays using any sorting logic and then get the indices as per the requirement.

1