Pergunta de entrevista da empresa Signzy

Given an array of numbers and a target sum, find two elements from the array with the target sum.

Resposta da entrevista

Sigiloso

12 de mar. de 2022

First, sort it and then use 2 pointers technique. This will make time complexity O(nlogn) I also told them to improve the time complexity we could use a hashmap.

7