Problems
Previous question · 796
Type I II Error Tradeoff
hard
Statistics
Next question · 798
Matrix Multiplication
easy
ML Coding
Random coding question
Python
Language
Python
Practice
Interview
AI Tutor
Description
Solution
Discussion
797. Two Sum Target
easy
General
entry
Function contract
Inputs
nums
list
target
int
Returns
value
list
Examples
Example 1
Input
{
"nums"
:
[
2
,
7
,
11
,
15
]
,
"target"
:
9
}
Output
[
0
,
1
]
Example 2
Input Signature
Argument
Type
nums
list
target
int
Output Signature
Return Name
Type
value
list
Constraints
Hint 1
Hint 2
Hint 3
Roles
Software Engineer
ML Engineer
Data Engineer
Quantitative Researcher
Research Scientist
Companies
General
Levels
entry
Tags
python
Similar Questions
Custom Sort String
medium
Algorithms
Number of 1 Bits
easy
Algorithms
Letter Case Permutation
medium
Algorithms
13 people
are solving this problem
Run
Submit
00:00
Loading editor for the selected language
Ln 1, Col 1
Program Output
DATA
INTERVIEW
Interactive coding terminal
Python environment ready.
Type a command below or run code from the editor.
run script
Execute the current editor contents
submit
Grade the current editor contents against all solution test cases
python ("print hello world")
Run an isolated Python command
help
Show all available commands
>>>