4️⃣ SUM: On Loading... That's similar with 3️⃣ SUM. Just only on small d/c.🕒
Keep point: 4️⃣ SUM Four Sum = Fix two numbers + solve two-Sum with two pointers. a + b + c + d = target This's only new idea but the other is as it's.
😁2❤1
https://leetcode.com/problems/4sum/ I'm stucked on this questions and now am trying to do my best. After then, I'll share for u my work progress
LeetCode
4Sum - LeetCode
Can you solve this real interview question? 4Sum - Given an array nums of n integers, return an array of all the unique quadruplets [nums[a], nums[b], nums[c], nums[d]] such that:
* 0 <= a, b, c, d < n
* a, b, c, and d are distinct.
* nums[a] + nums[b]…
* 0 <= a, b, c, d < n
* a, b, c, and d are distinct.
* nums[a] + nums[b]…
❤1
After many challenges😯 here I've solved 4Sum - LeetCode problem😁 https://leetcode.com/problems/4sum/submissions/1934060254/ U can try it so💪🏻
LeetCode
4Sum - LeetCode
Can you solve this real interview question? 4Sum - Given an array nums of n integers, return an array of all the unique quadruplets [nums[a], nums[b], nums[c], nums[d]] such that:
* 0 <= a, b, c, d < n
* a, b, c, and d are distinct.
* nums[a] + nums[b]…
* 0 <= a, b, c, d < n
* a, b, c, and d are distinct.
* nums[a] + nums[b]…
🎉1
Guys, I thought as long as we learn DSA. It's good to learn Python libraries.
Therefore we need your vote🗳
Therefore we need your vote🗳
Anonymous Quiz
82%
Yes, we'll start Python libraries
6%
No, we can't learn them together
12%
I don't have any idea
And then guys good night
tommorow there issome gift for u🎁
I will share in this channel...stay tuned and Stay focus on. U don't have to lose this opportunity👌
tommorow there is
I will share in this channel...stay tuned and Stay focus on. U don't have to lose this opportunity👌
🥰2
Now am gonna post so pls don't lose this opportunity. Keep in mind: After 5 minute it gonna expired so try ur best before that. About 5 minute left......
Am gonna start NUMPY. What do u think. Your vote is needed.
Anonymous Quiz
75%
Yup, go a head
19%
No, I don't care
6%
Amn't understand
Before going to start numpy ask your self these questions👇
1.WHY LEARN NUMPY? 2.WHILE LEARNING NUMPY WHAT I HAVE TO KNOW? 3.WHAT ARE THE RELATED CONCEPT WITH NUMPY?
🔥1
Morning guys🫡: In this morning am gonna focus on Sorting Algorithms and related problems. Therefore have u heard about sorting before? what it means? IF you know, it's good. So know we're going to learn what it means about Sorting in algorithms. Before that let's discuss the definition of SORTING ALGORITHM. are used to arrange the elements of a DS, such as an array, list, or tree, in a particular order, in ascending or descending order. These algorithms are used for organizing data, which enables more efficient searching, merging, and other operations.
What sorted do?🤔 array = [2, 1, 6, 4], look at this a list of array, it's not ordered, what we've to do is ordering this in increasing([1,2,4,6]) or decreasing([6,4,2,1]) order. We know that about BINARY SEARCH, it's sorted, to search for values like using two pointer but not in LINEAR SEARCH. DON'T FORGET WHERE TO USE SORTING👌
we're gonna solve problems & I'll share for u what I gained.🖐
BUBBLE SORT: Now am studying bubble sort. Lemme share for u in easy way what it means. the largest element "bubbles up" to the end in each pass. eg; arr = [3, 2, 5, 4] PASS 1: Compare 3 & 2, then 3 > 2 —> Swap—>[2, 3, 5, 4] Compare 3 & 5, then, 5 > 3 Ok no Swap Compare 5 & 4, then, 5 > 4 —> Swap—>[2, 3, 4, 5] PASS 2: Repeat the process again, check 2 & 3, no Swap. Ok then 3 & 4, no Swap, and 4 & 5, no Swap
Keep In Mind this concept. If so It's easy to apply on the implementations part.👨💻
👍1
As u see in the above image. Given a list of array = [6, 1, 4, 3] then What bubble sort doing here.😁 It looks fun right?😄 At the 1st we look at each list and pair them 2-BY-2. Swap(interchange), No Swap(if it's fixed). 👇Here what I gained the word we use when we talk about Bubble Sort.
,...👉🏽NEXT PROBLEM SOLVING
Swapping, Pass, in addition comparation.
How u can able to learn😊can u pls send ur own thought about Bubble Sort in the comment sections.
,...👉🏽NEXT PROBLEM SOLVING
👍1