codegamy_logo

CODELAB

1. Two Sum

Given an array of integers nums and an integer target...

Input Format

Input is an array of integers and a target integer.

Output Format

Return indices of the two numbers...

Sample Input

nums = [2,7,11,15], target = 9

Sample Output

[0,1]

Constraints:

  • Each input would have exactly one solution.
Python
Dark
14

Custom Input

Output

Custom Input

Output

1. Two Sum

Given an array of integers nums and an integer target...

Input Format

Input is an array of integers and a target integer.

Output Format

Return indices of the two numbers...

Sample Input

nums = [2,7,11,15], target = 9

Sample Output

[0,1]

Constraints:

  • Each input would have exactly one solution.
Python
Dark
14

Custom Input

Output

Custom Input

Output

2025 © CodeLab(PSTU) | All Rights Reserved.

Developed by Hasib-17❤️