3 Sum - Leetcode 15 - Java

preview_player
Показать описание
3 Sum - Leetcode 15 - Java

--------------------------------ABOUT--------------------------------
🧑🏻 My name is David and I am a software engineer at Meta. My passion is teaching software devs how to pass the grueling technical interviews to help them land their 6-figure dream tech job.

I have received 3 six-figure offers from Google, Meta, and Amazon.

🔬I provide content that will allow you to understand the thought process, pseudocode, time complexity, and code when approaching coding problems.

--------------------------------SOCIAL--------------------------------

💬 If you have any topic or questions you want me to cover, let me know in the comment section below ~ ฅʕ•ᴥ•`ʔ ฅʕ•ᴥ•`ʔ ฅʕ•ᴥ•`ʔ

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

Quick speed hack I thought I should mention. If nums[i] > 0 you can just break out of the outer for loop because none of the sums after that will be equal to 0!

duelbrosgames
Автор

I like your straightforward approach! This is the best explanation of this problem imo

pragyasingh
Автор

Two conditions in the body(while). It is meaningless

anhit
Автор

I like your explanation, no bs. new sub!

harrywang
Автор

I think you have some mistakes and have not passed some test cases.

anhit
Автор

In line 25
Why we take nums[j++] instead of nums[j] ??


Answer me plz...
There a lot of confusing.

rv__info
Автор

It must not contain duplicate triplets - It did not say duplicate numbers ! - You can have duplicate numbers but not repeat the triplet itself

AbhishekKothari
visit shbcf.ru