/data-structures-problems

Collection of data structures problems of different levels

Primary LanguageTypeScript

Data Structures and Algorithms Problems with solutions

1. Two Sum

Given an array of integers nums and an integer target, return the indices of the two numbers in the array that add up to the target.

Requirements and Constraints

  1. You must find exactly two numbers in the array that add up to the target.
  2. Each input will have exactly one solution, and you may not use the same element twice.
  3. You can return the answer in any order.