Leetcode 1. Two Sum (Python)

preview_player
Показать описание
Leetcode 1. Two Sum. Two Python Solutions

In this video, I solve the Leetcode Two Sum problem using brute force and an optimized approach.
You can find code on my(Ravina Gaikawad) GitHub repository. Find the link below.

If you have any algorithm problems please let me know in the comments below. Also, if you know any other way to solve this problem in an optimized way then let me know.

Ravina Gaikawad
Pseudocoder

#codinginterview #algorithm #leetcode #python #programming #faang #dsa #youtubevideo #pseudocoderravina #education #job #jobapplication #jobsearch #interview #algo #datastructures #dsalgo #interviewquestions #interviewpreparation #easy #easytech #software #softwareengineer #heap #pythonprogramming #array #list
Комментарии
Автор

Awesome. More of these Leetcode explanations please!

helloworldcsofficial
Автор

I like the way you explain, clean and clear enough..Thank youuu..

nurullahsirca
Автор

I am not able to understand questions in leetcode. How can I improve it!!

vishnusamudrala
Автор

I think APL has the best solution:
nums ← 2 7 11 15 ⍝ the numbers
target ← 9 ⍝ the target
1 ↑ ⍸ target = nums ∘. + nums ⍝ find the cell which matches the target value and extract it.
1 2 ⍝ APL uses 1 to start indices

Grahamplaysgo
Автор

hello ...it showing invalid synatax in line

mahivlogs
Автор

i guess you cant compare index of values like that.

Tanc
Автор

I agree with the solution ! 😊 Sameer rocks.. But Ravina rolls! ❤️

pranavkamble