This Algorithm is 1,606,240% FASTER

  Рет қаралды 707,103

ThePrimeagen

ThePrimeagen

Жыл бұрын

7 Steps it took to make an algorithm 1,606,242% faster!!!!
Become a backend engineer. Its my favorite site
boot.dev/?promo=PRIMEAGENYT
This is also the best way to support me is to support yourself becoming a better backend engineer.
David Perez
github.com/david-a-perez
B3NNY
/ _b_3_n_n_y_
Bit video
• Bit and Byte Explained...
Code used in video
github.com/ThePrimeagen/aoc/b...
Twitch
Everything is built live on twitch
Twitch : bit.ly/3xhFO3E
Discord: discord.gg/ThePrimeagen
Spotify DevHour: open.spotify.com/show/4MLaDrQ...
Editor
All my videos are edited by Flip. Give him a follow! / flipmediaprod He is also open to do more editing, so slide deeeeeeeeep into his dms.
Join this channel to get access to perks:
/ @theprimeagen
Links
Linode: linode.com/prime
/ discord
Twitch: / theprimeagen
Insta: / theprimeagen
Twitter: / theprimeagen
VimRC & i3: github.com/ThePrimeagen/.dotf...
Keyboard 15% off bit.ly/Prime360 USE CODE PRIME360
#coding #neovim #typescript #programming #vim #softwareengineering #codinglife #webdesign #webdevelopment #webdev #javascript #rustlang #rust #twitch #twitchstreamer #programmerhumor #codinghumor #software #softwareengineer #softwaredeveloper #softwaredevelopment

Пікірлер: 878
@slurpe_ee
@slurpe_ee Жыл бұрын
as a beginner developer, seeing you go from an array to bit manipulation was like watching black magic. incredible to see what we can do with these technologies and break them down to their atomic pieces.
@10e999
@10e999 Жыл бұрын
Exactly. It's not about Rust vs C vs Cpp vs Zig.
@DrOptix
@DrOptix Жыл бұрын
This is really awesome because you don't just show the final kick ass solution, but also present a mental model on how to get from the naive solution to the fast one.
@fishfpv9916
@fishfpv9916 Жыл бұрын
Really like videos going over practical algerithm optimization. I feel in school there is a lot of focus on theory and very little on how to make things run fast in the real world. Love to see more of these types of videos!
@yungclowns
@yungclowns Жыл бұрын
In the (relatively common) case where there's a 14-character window with more than one duplicate, going backwards within the window allows you to find the duplicate furthest along in the input. This means you can skip ahead further in those cases. It is a good example of a 'greedy' optimization looking for the best case (a late duplicate) first.
@ThePrimeagen
@ThePrimeagen Жыл бұрын
Tell me you were surprised by using a vector to speed up instead of using a hashset but telling me i am beautiful (and liking the video)
@PanduPoluan
@PanduPoluan Жыл бұрын
And a note of caution: Although yes the performance increases significantly, the more optimised it becomes, the more specialised and hard to maintain it will also be.
@brendanwenzel
@brendanwenzel Жыл бұрын
More of this is needed! I never knew I needed to know this stuff. Best part of KZbin is getting mentored by a senior dev without having to be in the same office!
@BreakbeatNightmare
@BreakbeatNightmare Жыл бұрын
More videos like this please! Love the deep dive into blazingly fast computer science topics
@alexandersemionov5790
@alexandersemionov5790 Жыл бұрын
I just had my imposter syndrome gone, and then I watched this video. Damn it!
@arjanbal3972
@arjanbal3972 Жыл бұрын
It's not mentioned, so one way to split the problem for multiple threads, is to divide the string into 64 pieces and ask each thread to solve one piece. You would also need to extend the boundaries of each piece by 14 (maybe 13?) characters on one side so that you can catch 14 size windows that are in multiple pieces. Report the min index from all threads as the final answer.
@ryandevenney8878
@ryandevenney8878 Жыл бұрын
Long time fan and this is my favorite video I’ve seen from you, more of this please!!
@tagon35
@tagon35 Жыл бұрын
Love this content. Really cool and even though I haven't looked at some of the concepts for a while, i can tell you've got fundamental knowledge to bank on. Can't wait to see more!
@anonymmc2764
@anonymmc2764 Жыл бұрын
Tbh this might be my favorite video of you so far. Very well explained, hats off to you! Also congratz to David for the solution, very clever stuff!
@Green_44_
@Green_44_ Жыл бұрын
This is the kind of breakdown I’ve been looking for!! Thank you and your family for this content 😅
@iamtheV0RTEX
@iamtheV0RTEX Жыл бұрын
@
@ChillAutos
@ChillAutos Жыл бұрын
This is the best content on KZbin. I'm about to do your algo course on front-end masters, cant wait.
@jonathangodar4239
@jonathangodar4239 Жыл бұрын
Loved the format of this video, it was explained so nicely and very easy to follow! Ty
@zzzurreal5370
@zzzurreal5370 Жыл бұрын
Thank you . Great content. I’m not very proficient with material related to any STEM type of work but I was very interested in this video
@daltonyon
@daltonyon Жыл бұрын
Amazing, I really love this type of content and inspire me to always thinking about performance
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 4,9 МЛН
C++ Super Optimization: 1000X Faster
15:33
Dave's Garage
Рет қаралды 272 М.
How I prepare to meet the brothers Mbappé.. 🙈 @KylianMbappe
00:17
Celine Dept
Рет қаралды 47 МЛН
Ну Лилит))) прода в онк: завидные котики
00:51
1🥺🎉 #thankyou
00:29
はじめしゃちょー(hajime)
Рет қаралды 23 МЛН
100❤️
00:19
Nonomen ノノメン
Рет қаралды 36 МЛН
How to Vim in 2023: Tips and Tricks
15:53
ThePrimeagen
Рет қаралды 386 М.
Looking Under the Hood of JavaScript
6:34
ThePrimeagen
Рет қаралды 175 М.
Someone improved my code by 40,832,277,770%
28:47
Stand-up Maths
Рет қаралды 2,4 МЛН
AI Discovers Faster Algorithms
19:30
ThePrimeTime
Рет қаралды 203 М.
RUST Enums ARE Better
5:49
ThePrimeagen
Рет қаралды 136 М.
everything is open source if you can reverse engineer (try it RIGHT NOW!)
13:56
Low Level Learning
Рет қаралды 1,2 МЛН
Algorithms In Interviews SUCK | Prime Reacts
24:15
ThePrimeTime
Рет қаралды 87 М.
Bug in Binary Search - Computerphile
11:31
Computerphile
Рет қаралды 281 М.
Gitlab DELETING Production Databases | Prime Reacts
17:27
ThePrimeTime
Рет қаралды 295 М.
How I prepare to meet the brothers Mbappé.. 🙈 @KylianMbappe
00:17
Celine Dept
Рет қаралды 47 МЛН