Competitive Programming
Відкрити в Telegram
Solving competitive Programming Questions one day at a time. Group link: https://t.me/daily1interviewprogram Please forward it to your friends
Показати більшеКраїна не вказанаКатегорія не вказана
4 553
Підписники
Немає даних24 години
Немає даних7 днів
Немає даних30 день
Архів дописів
Hope you guys have solved todays question. Click on the below link to know the solution. Please write your solution in the comment section of the post. As this is the first post, there are some things to be taken care of, will improve the redability in upcoming posts.
https://www.prodevelopertutorial.com/given-an-array-of-integers-in-ascending-order-return-index-of-the-two-numbers-such-that-they-add-up-to-a-specific-key-provided/
Todays Question:
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
Explanation:
Given nums = [2, 7, 11, 15], target = 9,
Because nums[0] + nums[1] = 2 + 7 = 9,
return [0, 1].
Difficulty:
Easy
Asked in company:
facebook, Bloomberg
