Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Implement Two Sum Algorithm #354

Closed
rugved0102 opened this issue Oct 12, 2024 · 5 comments
Closed

Implement Two Sum Algorithm #354

rugved0102 opened this issue Oct 12, 2024 · 5 comments
Labels
Hacktoberfest-2024 This PR is submitted for Hacktoberfest 2024. SkillShow Welcome to SkillShow! Contribute by creating an issue before opening a pull request!

Comments

@rugved0102
Copy link

Implement a function to solve the "Two Sum" problem. Given an array of integers (nums) and an integer (target), the goal is to return the indices of two numbers from the array such that their sum equals the target.

You must assume that:

Each input will have exactly one solution.
The same element cannot be used twice.
The result can be returned in any order.
Example Input/Output:
Example 1:

Input: nums = [2, 7, 11, 15], target = 9
Output: [0, 1]
Explanation: Because nums[0] + nums[1] == 9, we return [0, 1].

Copy link

@rugved0102

Welcome to the Project!

Thank you for opening this Issue 🙌! We’re thrilled to have you join us for Hacktoberfest 💖. We’ll review your submission and get back to you shortly.

In the meantime, please remember to give this repo a star! ⭐ We appreciate your contribution!

@imsherlocked
Copy link

/assign

@aryanayush012
Copy link

I want to work on it
please assign me this

@rugved0102
Copy link
Author

@Kushal997-das Can you please assign me the issue ?

@NimraAslamkhan
Copy link

Hi there!
I am the Mentor of this project.
Although this repo is not part of Hacktoberfest 2024, we have some great alternatives for you. Welcome to SkillShow, a repository focused on skill enhancement!

Guidelines:

  • Please adhere to the existing guidelines.
  • No additional rules, thanks!
  • Check it out here: SkillShow.

Note: Start by creating an issue. Once it’s assigned to you, feel free to open a pull request (PR). Directly opening a PR will lead to an invalid label.

Looking forward to your contributions!

@Kushal997-das Kushal997-das added Hacktoberfest-2024 This PR is submitted for Hacktoberfest 2024. SkillShow Welcome to SkillShow! Contribute by creating an issue before opening a pull request! labels Oct 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Hacktoberfest-2024 This PR is submitted for Hacktoberfest 2024. SkillShow Welcome to SkillShow! Contribute by creating an issue before opening a pull request!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants