Skip to content

Instantly share code, notes, and snippets.

View gowthamkaruturi's full-sized avatar

nagarjuna gowtham karuturi gowthamkaruturi

View GitHub Profile
@gowthamkaruturi
gowthamkaruturi / problem.txt
Created February 13, 2024 00:10
two sum problem
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.
You may assume that each input would have exactly one solution, and you may not use the same element twice.
You can return the answer in any order.
Example 1: