SamiTech Code
340 subscribers
124 photos
12 videos
4 files
84 links
Computer Science student and software developer focused on building impactful products, exploring AI, and solving real-world challenges with technology.
My portfolio.... sami.pro.et

“Your efforts today are your goals tomorrow.”
Download Telegram
And then guys good night

tommorow there is some gift for u🎁
I will share in this channel...stay tuned and Stay focus on. U don't have to lose this opportunity👌
🥰2
Good Morning🙋
Hey everyones are u ready for the challenges😂😂😂
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......
This is the challenge Don't lose

❤️❤️❤️❤️I wish for all of u BEST CHANCE😄😄😄
🎉🎉🎉5 MINUTE IS UR CHANCE💪💪💪

At the first and the last fill out the numbers hidden
You have 6 minute

It gonna expired 😍😍😍
Try ur best
And please don't forget If u get
🔥1
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.🖐
TYPES OF SORTING TECHNIQUES👆🏻
👍1
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.
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
⚡️ Optimized Bubble Sort (early stop)
👍1
SamiTech Code pinned «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…»
here bubble sort: Time: O(n^2)◽️
Space: O(1)⬛️
This's in place sort w/c means👇 Shifting array elements.
👍1
Hey guys. Now am discussing with my friends just I give for them small challenge.

What is one thing in your morning routine?🛖
Then they share their ideas. So what about u?
INSERTION SORT:
is one of the best algorithms to truly understand sorting logic, cause it works exactly like how humans sort cards in their hand. Human way to understand: Imagine you're holding cards: 👉🏽You pick one card at a time 👉🏽You insert it into the correct position among the already sorted cards Left side = sorted, Right side = unsorted Think of it like this: I take the next element and slide it left until it reaches its correct position. No swapping neighbors again & again like bubble sort instead, we shift elements.