LeetCode #1: Two Sum | Facebook Coding Interview | LeetCode Two Sum C++

preview_player
Показать описание

**** Best Books For Data Structures & Algorithms for Interviews:**********
*****************************************************************************

Amazon Coding interview question - Two Sum (Leetcode)
Facebook Coding Interview - Two Sum

#Amazon #Facebook #CodingInterview #LeetCode #TwoSum #Google
Рекомендации по теме
Комментарии
Автор

As a cs student learning C++ and been doing some leetcode problems, this channel looks amazing!

Hillooish
Автор

Thanks for such an awesome playlist and amazing explanation so that we can refer whenever we stuck there...
Again thanks a lot!!

strokeadda
Автор

Your 250 videos totally solved with only java coding

pavankalyankandikonda
Автор

Briallinat exaplenetion. Subscribed. Weting more questians.

quangxiang
Автор

the way of coding is very different in leetcode as compare to C++ that we learn. how can we overcome with this?

sahilrawat
Автор

Starting my Leetcode journey today. 22-09-24

jakesmith
Автор

Can you please make out a playlist for array only 🙏 this will helps bigginers !

PIYUSH-lzzq
Автор

This helped me pass time on the toilet. Thanks

tyler
Автор

how to set the normal c++ coding we learn
this c++ is not easy to understand

swamininarkhede
Автор

I had this error can someone help me
error: no matching constructor for initialization of 'vector<int>'
return {it->second, it};

ilyessouibgui
Автор

can anyone solve this dsa problem...

Amy got a beautiful number K and she decided to play a game with this number. She iterated through each integer X from 1 to 10^18 and wrote down lcm(X, K)/X on a paper. Her score is the number of distinct even integers that she wrote down on the paper.
Find her score for the given K. Here lcm(A, B) denotes the least common multiple of A and B.
Constraints 1 <= K <= 10^12 All input values are integers.

Input Format :
First-line contains K, denoting the beautiful number.
Output Format :
Print a single integer denoting her score.

Sample Input :
2
Sample Output :
1

Explanation of Sample:
Here K = 2, lcm(X, 2) is either X or 2*X. Distinct integers that she would get are { 1, 2} out of which 2 is only even.
So, answer is 1.

kanhaiyamahto
Автор

What kind of hardware you use for the pen ? Please share the amazon link if you have of the pen and digital slate you are using.

TheMsnitish
Автор

Thanks for the playlist really need this😍

prakashsingh
Автор

Is dsa required to solve these problems

krishnakhandelwalkk
Автор

your way of explanation excellent I don't know why so less viewers

ghumakkad_yogi
Автор

why this

?
we can also use
result.push_back(it);
result.push_back(p);
but this is showing error??but we can pushback iterator value in vector so why error is shown in my approach?

sumitrawatofficial
Автор

How is the time complexity different??? Both have 1 for loop and find function. Someone pls reply

swasthikadev
Автор

What is time and space complexity of this program ? please tell for the second efficient approach.

manup
Автор

What's the purpose of the "_map[num] = i;" at the very end?

taeylerlyons
Автор

Thank you so much for making this whole playlist, especially in C++.
It helped me a lot.

also, Please continue making Leetcode solutions this this.

prathamsrivastava