Two Sum | HashMap | Basic Coding Interview Question (Leetcode Java solution explained)

preview_player
Показать описание
Two sum is one of the most commonly asked facebook interview question as per leetcode.
This was the 1st question on leetcode 1. Two Sum

problem statement:
Given an array of integers nums and and integer target, return the indices of the two numbers such that they add up to target.

You may assume that each input would have exactly one solution, and you may not use the same element twice.

You can return the answer in any order.

#twosum #leetcode #thetechgranth

About channel:

This channel is for all those Aspirant who wants to get into big Tech Company.
It will help you prepare for your interviews and learn core concepts.
I have started with problem solving of leetcode in parallel with tutorials on core data structures. I will add content on system design and microservices as well
Do subscribe to the the channel to get all updates.
Post comment if my videos has helped you

Рекомендации по теме
Комментарии
Автор

How can we solve with out using any hash based data structure, I have been asked this in interview

tirupatirao
visit shbcf.ru