diff --git a/1 Two Sum b/1 Two Sum.cpp similarity index 70% rename from 1 Two Sum rename to 1 Two Sum.cpp index 0bb3d91..285a714 100644 --- a/1 Two Sum +++ b/1 Two Sum.cpp @@ -1,10 +1,10 @@ -1. Two Sum +//1. Two Sum -Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. +//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 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. +//You can return the answer in any order. //Optimal solution using HashMap