FelixTechTips
FelixTechTips
  • 16
  • 1 058 453

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)

Komentáře

  • @2290961
    @2290961 Před dnem

    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.

  • @aotforlife1346
    @aotforlife1346 Před 2 dny

    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

  • @user-nk1og7go5q
    @user-nk1og7go5q Před 6 dny

    why do you need a visited array in dijkstra?

  • @ParthaMunna
    @ParthaMunna Před 10 dny

    Awesome man ! like it

  • @poojamore3934
    @poojamore3934 Před 12 dny

    "The shortcut I was searching for, I finally got it. Thank you very much."

  • @christianihechi
    @christianihechi Před 12 dny

    Here in 2024 👏❤.

  • @andrew15_5
    @andrew15_5 Před 12 dny

    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!

  • @johnmahugu
    @johnmahugu Před 13 dny

    brilliant!!!

  • @lakshyachaturvedi2712

    My output is coming = [0,0,0,0,0,0,0,0,0,0,0] why is it so?

  • @baltistanigamer
    @baltistanigamer Před 20 dny

    Finally found this method...i was looking for this one❤

  • @narayanadhurti1603
    @narayanadhurti1603 Před 21 dnem

    This is indeed a great explanation.Thanks a ton.

  • @jamie19212
    @jamie19212 Před 24 dny

    ich küss dein herz

  • @kumuthan79
    @kumuthan79 Před 25 dny

    You are not returning anything from the function then how you able to get the sorted list in the console 😂😂

  • @ManuelGozzi
    @ManuelGozzi Před 25 dny

    Very well explained. My algorithms class was terrible lol.

  • @etnbe
    @etnbe Před 29 dny

    Thank you sir! ❤

  • @gorkemgenc344
    @gorkemgenc344 Před měsícem

    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] - []

  • @al-washisarkerturan8913
    @al-washisarkerturan8913 Před měsícem

    Is O(n) the time complexity of this code or is it O(nlogn)?

  • @luisherrada828
    @luisherrada828 Před měsícem

    So simply and beautifully explained. I went through several videos on this topic and you are on the podium.

  • @rajashekar5887
    @rajashekar5887 Před měsícem

    Y we won't connect any node to E

  • @wannabehuman.production
    @wannabehuman.production Před měsícem

    May you pillow be always cold on both sides

  • @yeleukenov
    @yeleukenov Před měsícem

    Eloquent, beautiful. Thanks

  • @manishachollangi3874
    @manishachollangi3874 Před měsícem

    Subscribed❤

  • @PriggarGaming
    @PriggarGaming Před měsícem

    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

    • @FelixTechTips
      @FelixTechTips Před měsícem

      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.

    • @PriggarGaming
      @PriggarGaming Před měsícem

      @@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

  • @aarondanen3150
    @aarondanen3150 Před měsícem

    great video thanks man

  • @williamhogrider4136
    @williamhogrider4136 Před měsícem

    Tomorrow is my Design amd Analysis of Algorithms exam, your videos on quick, merge sort and now this have been really helpful. Thanks man.

    • @FelixTechTips
      @FelixTechTips Před měsícem

      Good luck with the exam :)

    • @williamhogrider4136
      @williamhogrider4136 Před měsícem

      ​@@FelixTechTips I think I did well, feels good ending the semester like this (⁠ ⁠◜⁠‿⁠◝⁠ ⁠)

    • @FelixTechTips
      @FelixTechTips Před měsícem

      @@williamhogrider4136 Let's go! 🚀

  • @nathandam3005
    @nathandam3005 Před měsícem

    yeah, imma kiss u bro

  • @parvathisalimath6820
    @parvathisalimath6820 Před měsícem

    thankyou

  • @abrorallaberganov6293
    @abrorallaberganov6293 Před měsícem

    Thanks. It is great tutorial and easy to understand

  • @abrorallaberganov6293
    @abrorallaberganov6293 Před měsícem

    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.

  • @devendravyas328
    @devendravyas328 Před měsícem

    Be continue bro.

  • @haqizza
    @haqizza Před měsícem

    I like the example graph you make. With doesn't make it find the best in the first search, it makes me understand better

  • @charliewebb7244
    @charliewebb7244 Před měsícem

    perfect video. 10/10

  • @umeboshi_
    @umeboshi_ Před měsícem

    Thank you

  • @V0R59
    @V0R59 Před 2 měsíci

    Help Please...N What about the blank space in Node A..? WHAT should we write on previous node of A😢..!!?

  • @teflonczmotherboard4551
    @teflonczmotherboard4551 Před 2 měsíci

    Wow, I just installed the algorithm to the brain in 8 minutes🧠. Thank you, Sir.

  • @ShitritarielChannel
    @ShitritarielChannel Před 2 měsíci

    100/100 explaining , thank you so much

  • @1Lia11
    @1Lia11 Před 2 měsíci

    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

  • @infantalenency3561
    @infantalenency3561 Před 2 měsíci

    Why do I keep thinking 3 years ago was 2017 and not 2021? 💀

  • @Shemborr
    @Shemborr Před 2 měsíci

    ˢⁱʳ ʷᵉ ᵐᵘˢᵗ ᵗʳᵃᵛᵉˡ ᶠʳᵒᵐ ᵈ ᵗᵒ ᶠ ʳʸᵗ ᶜᵃᵘˢᵉ 7+2=9 ᵇᵘᵗ ᶠʳᵒᵐ ᵈ ᵗᵒ ᵉ ⁱˢ ˡⁱᵏᵉ 7+3=10

  • @henryconner780
    @henryconner780 Před 2 měsíci

    Thanks bro, really great visual. You saved me a lot of time

  • @atomicCache_
    @atomicCache_ Před 2 měsíci

    Thanks for the explaining the Dijkstra algorithm so well. 😊😊

  • @rw7154
    @rw7154 Před 2 měsíci

    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.

  • @amalsalim88
    @amalsalim88 Před 2 měsíci

    yes this video helped. thank you for doing this!

  • @josephjoe5762
    @josephjoe5762 Před 2 měsíci

    I trust this guy beacuse of his german accent

  • @owboy8782
    @owboy8782 Před 2 měsíci

    WTF distance between D and E is 10 not 8🤚

  • @toto123752
    @toto123752 Před 2 měsíci

    thnks for good explaination

  • @stoup8778
    @stoup8778 Před 2 měsíci

    This is the best dijkstras explanation on youtube

  • @rajrish
    @rajrish Před 2 měsíci

    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)

  • @hlubradio2318
    @hlubradio2318 Před 2 měsíci

    Nice but i did all there in the year 1992 Borland Turbo Pascal

  • @winniethepoop917
    @winniethepoop917 Před 2 měsíci

    it helped me understanding the algorithm. thank u very much