- 16
- 1 058 453
FelixTechTips
Registrace 28. 04. 2012
Coding Tutorials, entertaining coding videos and just having fun with tech stuff :)
Calculate Pi Using Random Numbers (Coding Interview Questions)
How To Calculate Pi Using Random Numbers
This is an interesting job interview question from my Coding Interview series.
This is an interesting job interview question from my Coding Interview series.
zhlédnutí: 9 681
Video
if __name__ == "__main__" Explained (Basic Python Concepts)
zhlédnutí 1,5KPřed 3 lety
if name " main ": Why and how does it work? What is the special variable name ?
Lattice Paths Problem | Algorithmic And Combinatorial Solution
zhlédnutí 3,9KPřed 3 lety
Two ways to solve the lattice paths problem from Project Euler. Project Euler Problem 15: Starting in the top left corner of a 2×2 grid, and only being able to move to the right and down, there are exactly 6 routes to the bottom right corner. How many such routes are there through a 20×20 grid?
Top 10 PyCharm Shortcuts For Efficiency | PyCharm Tutorial
zhlédnutí 50KPřed 3 lety
Learn 10 PyCharm shortcuts to make your development process more productive, efficient and fun. This video covers: How to duplicate lines in PyCharm How to refactor in PyCharm How to search in PyCharm How to quick fix in PyCharm How to comment blocks in PyCharm How to open recent files in PyCharm
PyCharm Debugging Tutorial | How To Debug In PyCharm
zhlédnutí 4,3KPřed 3 lety
How To Debug In PyCharm For Beginners Subscribe for more coding related videos.
Design your own Hashset | Coding Interview Question
zhlédnutí 2,9KPřed 3 lety
How to design a Hashset. Hashsets explained. Found on Leetcode:leetcode.com/problems/design-hashset/ This is part of my coding interview challenges playlist.
The 3 Sum Problem (Coding Interview Question)
zhlédnutí 770Před 3 lety
How to solve the 3Sum problem with Python (and every other language). Prepare for job interviews with my coding challenge playlist. Found this problem on Leetcode:leetcode.com/problems/3sum/
Dijkstras Shortest Path Algorithm Explained | With Example | Graph Theory
zhlédnutí 345KPřed 3 lety
I explain Dijkstra's Shortest Path Algorithm with the help of an example. This algorithm can be used to calculate the shortest distance between one node and every other node in a weighted graph. If you want to learn more about algorithms, check out my Basic Algorithms in Python Playlist and subscribe to this channel.
Breadth First Search Algorithm Explained (With Example and Code)
zhlédnutí 12KPřed 3 lety
Breadth First Search Algorithm Explained. BFS explained with an example and code in Python. This video is part of my basic algorithms series. Check out the other ones to develop your algorithm skills and become better at programming or subscribe to this channel for more.
The MAGIC Square Problem (Coding Interview Question)
zhlédnutí 40KPřed 4 lety
How to convert a given 3x3 matrix into a magic square. Learn how magic squares work and how many there are. Problem source on hackerrank: www.hackerrank.com/challenges/magic-square-forming/problem This video is part of my coding interview questions series.
Convert Roman Numerals To Integers (Coding Interview Question)
zhlédnutí 3,2KPřed 4 lety
How to convert roman numerals to integers with Python. This video is part of my coding interview questions series.
Insertion Sort in Java Explained (With Example And Code)
zhlédnutí 19KPřed 4 lety
Insertion Sort is a simple sorting algorithm with O(n*n) running time. In this video I show you a quick example and how to implement this algorithm in Java step by step. This video is part of the basic algorithms in Java playlist. The goal is to get an understanding of basic computer science algorithms and their implementation in Java. For more coding videos subscribe to my youtube channel.
Quicksort In Python Explained (With Example And Code)
zhlédnutí 139KPřed 4 lety
Quicksort is an efficient sorting algorithm with O(n*logn) average running time. In this video I show you a quick example and how to implement this algorithm in Python step by step. This video is part of the basic algorithms in Python playlist. The goal is to get an understanding of basic computer science algorithms and their implementation in Python. For more coding videos subscribe to my yout...
Merge Sort In Python Explained (With Example And Code)
zhlédnutí 201KPřed 4 lety
Merge Sort is an efficient sorting algorithm with O(nlogn) running time. In this video I show you a quick example and how to implement this algotrithm in Python step by step. This video is part of the basic algorithms in Python playlist. The goal is to get an understanding of basic computer science algorithms and their implementation in Python. For more coding videos subscribe to my youtube cha...
Selection Sort In Python Explained (With Example And Code)
zhlédnutí 58KPřed 4 lety
Selection Sort is a simple sorting algorithm with quadratic running time. In this video I show you a quick example and how to implement this algotrithm in Python step by step. This video is part of the basic algorithms in Python playlist. The goal is to get an understanding of basic computer science algorithms and their implementation in Python. For more coding videos subscribe to my youtube ch...
Insertion Sort In Python Explained (With Example And Code)
zhlédnutí 169KPřed 4 lety
Insertion Sort In Python Explained (With Example And Code)
But in case, if we want to retrive all the possible pairs, be that pair of 2 or 3, in that case we have to loop each element with every other element I believe.
Since you are calling a linear function (len()) every time. Doesn't that worsen the overall runtime? I tried the same program on my computer with a list of length 100 million. It took around 1 minute when it should have been alot faster for a n log n function
why do you need a visited array in dijkstra?
Awesome man ! like it
"The shortcut I was searching for, I finally got it. Thank you very much."
Here in 2024 👏❤.
9:46 You forgot to say "- 1" after "right will be the length of the array" (since left starts at 0 and not 1). The explanation is great! I forgot about how this works after several years of no practice, but now I remembered everything!
brilliant!!!
My output is coming = [0,0,0,0,0,0,0,0,0,0,0] why is it so?
Finally found this method...i was looking for this one❤
This is indeed a great explanation.Thanks a ton.
ich küss dein herz
You are not returning anything from the function then how you able to get the sorted list in the console 😂😂
Very well explained. My algorithms class was terrible lol.
Thank you sir! ❤
instead of swapping, why don't we just add the current_minimum value at the end of an array? I mean, wouldn't it be faster? [] - [3, 1, 4, 2] [1] - [3, 4, 2] [1, 2] - [3, 4] [1, 2, 3] - [4] [1, 2, 3, 4] - []
Is O(n) the time complexity of this code or is it O(nlogn)?
So simply and beautifully explained. I went through several videos on this topic and you are on the podium.
Y we won't connect any node to E
May you pillow be always cold on both sides
Eloquent, beautiful. Thanks
Subscribed❤
3:42 diagram youre using is technically incorrcet ∆ABD has one side AB=2 and side BD=5 third side AD=8 And thats incorrect because un triangles sum of two shorter sides is always greater than third side Same is incorrect for ∆EFC Also the ∆BED and ∆FED do not follow Pythagoras throrem otherwise the diagram is incorrect Because In ∆BED BE=6 DV=5 according to Pythagoras theorem 6²+5²=DE² =36+25=3²(value DE) Now mathematically 61≠9 therefore the diagram IS incorrect Same applies to the other triangle as well 1²+2²≠3² 1+4≠9 5≠9 Therefore youre wrong in the diagram a lot
Thanks for your input. The diagram is a visualization of a graph which is an abstract structure en.wikipedia.org/wiki/Graph_(discrete_mathematics). Pythagoras theorem, which is meant for euclidean space, cannot be applied here. The nodes of the graph do not form a geometric triangle in this sense.
@@FelixTechTips the only reason I'm studying this is for a Minecraft video that's why I didn't knew a lot trying to make a gps system in the game without changeing the games actual code and only using command blocks
great video thanks man
Tomorrow is my Design amd Analysis of Algorithms exam, your videos on quick, merge sort and now this have been really helpful. Thanks man.
Good luck with the exam :)
@@FelixTechTips I think I did well, feels good ending the semester like this ( ◜‿◝ )
@@williamhogrider4136 Let's go! 🚀
yeah, imma kiss u bro
thankyou
Im happy to help :)
Thanks. It is great tutorial and easy to understand
00:05 Dijkstra's algorithm calculates the shortest path from a fixed node to every other node in a weighted graph. 01:04 Assigning tentative distance values to nodes 02:05 Update table with new shorter distances 03:08 Updating the shortest distances for unvisited neighbors 04:17 Updating shortest distance and previous nodes 05:20 Updating shortest distances using Dijkstra's algorithm 06:30 Dijkstra's algorithm finds the shortest distance from a starting node to all other nodes in a graph. 07:32 Dijkstra's algorithm helps to reconstruct the shortest path.
Be continue bro.
I like the example graph you make. With doesn't make it find the best in the first search, it makes me understand better
perfect video. 10/10
Thank you
Help Please...N What about the blank space in Node A..? WHAT should we write on previous node of A😢..!!?
Wow, I just installed the algorithm to the brain in 8 minutes🧠. Thank you, Sir.
100/100 explaining , thank you so much
i've been searching for hours for a video that could explain exactly what happens when there is only 2 elements, and i finally got it! thanks a lot
Why do I keep thinking 3 years ago was 2017 and not 2021? 💀
Time flies :0
ˢⁱʳ ʷᵉ ᵐᵘˢᵗ ᵗʳᵃᵛᵉˡ ᶠʳᵒᵐ ᵈ ᵗᵒ ᶠ ʳʸᵗ ᶜᵃᵘˢᵉ 7+2=9 ᵇᵘᵗ ᶠʳᵒᵐ ᵈ ᵗᵒ ᵉ ⁱˢ ˡⁱᵏᵉ 7+3=10
Thanks bro, really great visual. You saved me a lot of time
Thanks for the explaining the Dijkstra algorithm so well. 😊😊
Using a laser pointer or at least the mouse while you talk will go a long way to connect what you are saying with what people can see. Otherwise it is a good lesson.
Good idea , thanks :)
yes this video helped. thank you for doing this!
I trust this guy beacuse of his german accent
:D
WTF distance between D and E is 10 not 8🤚
thnks for good explaination
This is the best dijkstras explanation on youtube
I found your code simple but but i dont think it is the correct example of insertion sort. bcz in insertion sort, we pick one element and put it to its correct location, but you kept swapping the element with the previous element until the previous element is not smaller than our main element. So it is technically an example of bubble sort that is executed in the reverse direction. You won't get what im trying to say just by reading my sentence. Therefore look at this example of insertion sort : l1 = [5,1,3,4,2] n = len(l1) for i in range(n): k = l1[i] j = i-1 while k<l1[j] and j>=0 : l1[j+1] = l1[j] j -= 1 else: l1[j+1] = k print('Sorted list: ', l1)
Nice but i did all there in the year 1992 Borland Turbo Pascal
it helped me understanding the algorithm. thank u very much