2938. Separate Black and White Balls || Greedy 🔥 || 2 Pointers 🔥

  Рет қаралды 1,122

Ayush Rao

Ayush Rao

Күн бұрын

2938. Separate Black and White Balls
Question Link: leetcode.com/p...
Solution Link:leetcode.com/p... Video Link: • How I solved 550 LeetC...
Leetcode Profile : leetcode.com/a...
Greetings KZbin Community,
I have created a Code_With_Confidence WhatsApp community. If you are interested, you can join. In this community, we will track consistency (Eg: Leetcode daily challenge, Upsolving Contest problems ) and discuss trending technologies.
Code_With_Confidence community link: chat.whatsapp....
Video Link: • How I solved 550 LeetC...
In have made a Video on my past learnings and experience, I will be covering the following topics:
1.Consistency: How I solved 550 LeetCode problems in 2023 by dedicating an average of 30 minutes on weekdays and 2 hours on weekends.
2.How many days should you dedicate to studying Data Structures and Algorithms?
3.The importance of system design in interviews.
4.How service-based companies contribute to your early career.
5.How to break down your goals and achieve them step by step (Progressing from Service-Based roles to FAANG companies)
6.FOMO (Fear Of Missing Out).
Video Link: • How I solved 550 LeetC...
Code_With_Confidence community link: chat.whatsapp....
Connect with me on Linkedin: / ayush-nemmaniwar

Пікірлер: 7
@srinivasareddychalla-i2o
@srinivasareddychalla-i2o Жыл бұрын
Question states that we can swap only adjacent elements. However we are seen swapping the numbers in a particular range.
@Code_With_Confidence
@Code_With_Confidence Жыл бұрын
We are swapping in particular range and we are adding the difference of that range to our solution.
@yashkalia2311
@yashkalia2311 Жыл бұрын
can you explain how did you think of this approach
@Code_With_Confidence
@Code_With_Confidence Жыл бұрын
Thank you :)
@ramanuj_jindal
@ramanuj_jindal Жыл бұрын
Great solution brother😄
@Code_With_Confidence
@Code_With_Confidence Жыл бұрын
Thank you :)
@Gods_plan-g1l
@Gods_plan-g1l Ай бұрын
2 pointer
Separate Black and White Balls | Leetcode 2938
11:50
Techdose
Рет қаралды 1,5 М.
Can You Find Hulk's True Love? Real vs Fake Girlfriend Challenge | Roblox 3D
00:24
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59
Separate Black and White Balls - Leetcode 2938 - Python
8:15
NeetCodeIO
Рет қаралды 10 М.
40 Blind75 | Insert Interval
21:02
ak tiwari
Рет қаралды 4
Beginners Should Think Differently When Writing Golang
11:35
Anthony GG
Рет қаралды 124 М.