633. Sum of Square Numbers | Math | 2 Pointer | Binary Search | Two Sum

  Рет қаралды 3,881

Aryan Mittal

Aryan Mittal

Күн бұрын

In this video, I'll talk about how to solve Leetcode 633. Sum of Square Numbers | Math | 2 Pointer | Binary Search | Two Sum
2Sum - • 1. Two Sum | Day 003 |...
Let's Connect:
📱Discord (Join Community) : / discord
📝Linkedin: / aryan-mittal-0077
📸 Instagram: / codewitharyanbhai
💻 Twitter - / aryan_mittal007
🤖 Github: github.com/ary...
About Me:
I am Aryan Mittal - A Software Engineer in Goldman Sachs, Speaker, Creator & Educator. During my free time, I create programming education content on this channel & also how to use that to grow :)
✨ Timelines✨
✨ Hashtags ✨
#programming #Interviews #leetcode #faang #maang #datastructures #algorithms

Пікірлер: 24
@vickyroy3595
@vickyroy3595 7 ай бұрын
Aryan , falling love with your videoes and explanation!!!
@learningmaths786
@learningmaths786 7 ай бұрын
I had this question in my interview and I solved it in 10 minutes
@worldofgaming748
@worldofgaming748 7 ай бұрын
so where are you now?
@ReetiSahuu
@ReetiSahuu 7 ай бұрын
Which company interview?
@learningmaths786
@learningmaths786 7 ай бұрын
@@ReetiSahuu zoho
@coderunner743
@coderunner743 7 ай бұрын
bro, are you got selected in Zoho? if yes which year bro?
@akmarkan2490
@akmarkan2490 7 ай бұрын
Thanks bro💪🏻
@mohit7717
@mohit7717 7 ай бұрын
Exactly same I have done this ...
@cenacr007
@cenacr007 7 ай бұрын
@manishasingh-de8hi
@manishasingh-de8hi 7 ай бұрын
solved it using two pointer in first go.🙂
@JIGARSINGTHAKOR-yy6qp
@JIGARSINGTHAKOR-yy6qp 7 ай бұрын
Bhaiya is "cracking the coding interview " book is worth to buy in 2024???
@parthlahoti5404
@parthlahoti5404 7 ай бұрын
2 pointer is mentioned in topic tags,
@riaa55
@riaa55 3 ай бұрын
Understood
@SubhajitDas-mt7sn
@SubhajitDas-mt7sn 7 ай бұрын
can you update your discord link ? Old link was expired...
@om-it4qq
@om-it4qq 7 ай бұрын
can you please solve this question again ? "2834. Find the Minimum Possible Sum of a Beautiful Array" ! , you have already solve this question for that contest , but now they change Constraints, in contest it was ask for value of n and target up to 100000 but now they ask for 1e9 !! can you please help me out! I try to understand math but i can't 😣😣
@mrityunjoybarman9098
@mrityunjoybarman9098 7 ай бұрын
public boolean judgeSquareSum(int c) { long low = 0; long high = (long)Math.sqrt(c); while (low c) high = mid - 1; else low = mid + 1; } return false; } Can anyone please tell me why binary search on answer is not working?
@krishankantak
@krishankantak 7 ай бұрын
take mid = low + (high - low)/2
@shikharjoshi2998
@shikharjoshi2998 7 ай бұрын
can u plz tell why we are using a
@Taciturn123-r6j
@Taciturn123-r6j 7 ай бұрын
If we take c=9 then the output will be 0^2+3^2 i.e b=3 as you said if we take a
@shikharjoshi2998
@shikharjoshi2998 7 ай бұрын
​@@Taciturn123-r6jif we take c = 9 then in one pass only we will get true as ans , as 0
@learnerforlife1338
@learnerforlife1338 7 ай бұрын
@@shikharjoshi2998 for cases where c is sum of two squares such that a=b, like 32, 4^2 + 4^2
@shikharjoshi2998
@shikharjoshi2998 7 ай бұрын
​@@learnerforlife1338 oh ok got it now 👍
@Algorithmswithsubham
@Algorithmswithsubham 7 ай бұрын
why it's giving me wrong ans for 4 class Solution { public: bool judgeSquareSum(int c) { for(int i=1;i1; long long pro_duc=(x*x)+(mid*mid); if(pro_duc==c){ // cout
@rajrajesh1669
@rajrajesh1669 7 ай бұрын
Your approach won't work for any perfect squares or for zero, because you aren't considering 0 as a term.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
3448. Count Substrings Divisible By Last Digit | 3D DP | With Dry Run
33:40
Complex Fibonacci Numbers?
20:08
Stand-up Maths
Рет қаралды 1 МЛН
I made Tetris in C, this is what I learned
15:15
Austin Larsen
Рет қаралды 31 М.
The SHOCKING Truth About Who Should NOT Code! 🤫
11:50
Aryan Mittal
Рет қаралды 3 М.
Sum of Square Numbers - Leetcode 633 - Python
14:26
NeetCodeIO
Рет қаралды 13 М.
Физик-теоретик решает ЕГЭ по физике
2:14:22
Физика для всех! СПбГУ
Рет қаралды 378 М.
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
C can do this too and it's faster than Python
2:09:48
Tsoding Daily
Рет қаралды 17 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН