What is the Two-Pointers Technique & How to use it? | Two-Pointers Approach Explained | Geekific

  Рет қаралды 9,487

Geekific

Geekific

Күн бұрын

Support us on Patreon: / geekific
Discord Community: / discord
GitHub Repository: github.com/geekific-official/
Before attempting to tackle the different problems LeetCode has to offer, we are going to explore the most common techniques or approaches used while trying to solve a given problem. One of these approaches goes by Two-Pointers and is the subject of this video.
LeetCode Problems solved in this video:
- leetcode.com/problems/middle-...
- leetcode.com/problems/two-sum...
Timestamps:
00:00 Introduction
00:08 What problem are we trying to solve?
01:26 What is the Two-Pointers Technique?
02:09 Implementing the first Two-Pointers Approach
03:06 Implementing the second Two-Pointers Approach
04:50 Thanks for Watching!
If you found this video helpful, check other Geekific uploads:
- Object-Oriented Programming Fundamentals: • What is Object-Oriente...
- SOLID Principles and Best Practices: • SOLID Design Principle...
- Recursion Made Simple, Recursive Methods: • What is Recursion? | R...
- Use-Case and Sequence Diagrams: • UML Use-Case and Seque...
- Introduction to Dynamic Programming: • What Is Dynamic Progra...
- Graphs, The Fundamentals: • Introduction to Graphs...
- Trees Compared and Visualized, BST vs AVL vs RedBlack vs Splay vs Heaps: • Trees Compared and Vis...
- Generics and Wildcards in Java, Invariance vs Covariance vs Contravariance: • Generics and Wildcards...
- Reading from and Writing to a file in Java, Transient Java Keyword: • Java NIO | Reading fro...
- What is a Thread? (Process, Program, Parallelism, Scheduler Explained): • What is a Thread? | Th...
- Domain-Driven Design Made Simple: • Domain-Driven Design M...
#Geekific #CodingInteview #TwoPointers #LeetCode #Java #Google #Amazon #Meta #Microsoft #Apple #Netflix

Пікірлер: 18
@wittyhumour29
@wittyhumour29 Жыл бұрын
Concise, Undersatandbale and to the Point. Great work!
@giancarlokuosmanen9723
@giancarlokuosmanen9723 11 ай бұрын
Fantastic, short and concise.
@CPS_XI
@CPS_XI 4 ай бұрын
Great video thank you so much ❤💯
@mansurlearningchannel6462
@mansurlearningchannel6462 9 ай бұрын
the best explanation that i have ever seen
@mirageman2
@mirageman2 Жыл бұрын
Great video, thanks a lot. It 's a bit strange that you don't have more views.
@nenuanenenuane6645
@nenuanenenuane6645 11 ай бұрын
Super please make one video on sliding window fixed and dynamic size
@karoldo1831
@karoldo1831 Жыл бұрын
Great video, guys! I like the examples of application of this two-pointer approach. They showed how to optimally solve a problem that I haven't thought about. Btw, in the future, perhaps you could consider making videos about math related topic such as: Checking if number is prime, counting gcd (greatest common divisor), lcm (lowest common multiple). After all algorithms and computer science are related to math :D
@geekific
@geekific Жыл бұрын
Glad it was helpful! And (between us) we are actually working on a Math Series (but it is in the far future)! Stay Tuned :)
@manOfPlanetEarth
@manOfPlanetEarth Жыл бұрын
@@geekific "between us" nice old joke:)) Wished to ask what are your current and upcoming plans in terms of video topics? Going to cover most videos on your channel but my urgent point is Leetcode and related techniques.
@kobaabzianidze4677
@kobaabzianidze4677 Жыл бұрын
Very underrated channel, your videos are great! Please keep going 🚀
@geekific
@geekific Жыл бұрын
Thanks, will do :)
@manOfPlanetEarth
@manOfPlanetEarth Жыл бұрын
It WILL be rated properly with some time. It has already doubled since I joined recently.
@sathishkannan4041
@sathishkannan4041 6 ай бұрын
if target equals sum, why left+1 and right+1 is required?
@sreenivasuluc5107
@sreenivasuluc5107 2 ай бұрын
because the array is 1 indexed so indexes start from 1 instead of 0
@lequilong2725
@lequilong2725 Жыл бұрын
Can you make a playlist about Spring boot? I would really appreciate it
@geekific
@geekific Жыл бұрын
It is on the way! Very soon :) Stay Tuned!
@softcysec_ke
@softcysec_ke Жыл бұрын
The second problem initial would run on 0(n^2)
@manOfPlanetEarth
@manOfPlanetEarth Жыл бұрын
Nice. I liked that.
How to Use the Two Pointer Technique
10:56
Team AlgoDaily
Рет қаралды 94 М.
لقد سرقت حلوى القطن بشكل خفي لأصنع مصاصة🤫😎
00:33
Cool Tool SHORTS Arabic
Рет қаралды 29 МЛН
НЫСАНА КОНЦЕРТ 2024
2:26:34
Нысана театры
Рет қаралды 1,5 МЛН
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 55 МЛН
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 403 М.
But how do GPUs actually work?
8:48
Graphicode
Рет қаралды 3,1 М.
you will never ask about pointers again after watching this video
8:03
Low Level Learning
Рет қаралды 2,1 МЛН
How to Solve ANY LeetCode Problem (Step-by-Step)
12:37
Codebagel
Рет қаралды 157 М.
All Rust features explained
21:30
Let's Get Rusty
Рет қаралды 297 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 785 М.
لقد سرقت حلوى القطن بشكل خفي لأصنع مصاصة🤫😎
00:33
Cool Tool SHORTS Arabic
Рет қаралды 29 МЛН