0003 Two Sums
0003 Two Sums
html
1. Two Sum
Given an array of integers, return indices of the two numbers such that
they add up to a specific target.
You may assume that each input would have exactly one solution, and
you may not use the same element twice.
Example:
Difficulty:
Easy
Lock:
Normal
Company:
Adobe (https://leetcode.ca/tags/#Adobe)
Aetion (https://leetcode.ca/tags/#Aetion)
Affirm (https://leetcode.ca/tags/#Affirm)
Airbnb (https://leetcode.ca/tags/#Airbnb)
Alibaba (https://leetcode.ca/tags/#Alibaba)
Amazon (https://leetcode.ca/tags/#Amazon)
Apple (https://leetcode.ca/tags/#Apple)
Audible (https://leetcode.ca/tags/#Audible)
1 of 3 21/11/2024, 10:58 pm
Leetcode 1. Two Sum https://leetcode.ca/all/1.html
Baidu (https://leetcode.ca/tags/#Baidu)
BlackRock (https://leetcode.ca/tags/#BlackRock)
Bloomberg (https://leetcode.ca/tags/#Bloomberg)
Booking.com (https://leetcode.ca/tags/#Booking.com)
Box (https://leetcode.ca/tags/#Box)
ByteDance (https://leetcode.ca/tags/#ByteDance)
Cisco (https://leetcode.ca/tags/#Cisco) Citadel (https://leetcode.ca/tags/#Citadel)
Citrix (https://leetcode.ca/tags/#Citrix)
Deutsche Bank (https://leetcode.ca/tags/#Deutsche Bank)
DiDi (https://leetcode.ca/tags/#DiDi)
Drawbridge (https://leetcode.ca/tags/#Drawbridge)
Dropbox (https://leetcode.ca/tags/#Dropbox)
Facebook (https://leetcode.ca/tags/#Facebook)
FactSet (https://leetcode.ca/tags/#FactSet)
Google (https://leetcode.ca/tags/#Google)
Groupon (https://leetcode.ca/tags/#Groupon)
Intuit (https://leetcode.ca/tags/#Intuit)
caMorgan (https://leetcode.ca/tags/#caMorgan)
LinkedIn (https://leetcode.ca/tags/#LinkedIn) Lyft (https://leetcode.ca/tags/#Lyft)
Microsoft (https://leetcode.ca/tags/#Microsoft)
Qualcomm (https://leetcode.ca/tags/#Qualcomm)
Salesforce (https://leetcode.ca/tags/#Salesforce)
Samsung (https://leetcode.ca/tags/#Samsung)
SAP (https://leetcode.ca/tags/#SAP)
ServiceNow (https://leetcode.ca/tags/#ServiceNow)
2 of 3 21/11/2024, 10:58 pm
Leetcode 1. Two Sum https://leetcode.ca/all/1.html
Snapchat (https://leetcode.ca/tags/#Snapchat)
Splunk (https://leetcode.ca/tags/#Splunk)
Spotify (https://leetcode.ca/tags/#Spotify)
Tableau (https://leetcode.ca/tags/#Tableau)
Tencent (https://leetcode.ca/tags/#Tencent)
Twilio (https://leetcode.ca/tags/#Twilio)
Twitter (https://leetcode.ca/tags/#Twitter)
Two Sigma (https://leetcode.ca/tags/#Two Sigma)
Uber (https://leetcode.ca/tags/#Uber) Valve (https://leetcode.ca/tags/#Valve)
Problem Solution
1-Two-Sum (https://leetcode.ca/2015-12-01-1-Two-Sum)
All Problems:
3 of 3 21/11/2024, 10:58 pm