Hope you recover from cancer soon bro. Lot's of love and wishes
@jailandrademx
3 жыл бұрын
I will use the line "100% programming language bug not mine" in everything from now on
@zmejserow
3 жыл бұрын
It's hard to solve problems in non-elegant way with such an elegant language like Haskell. Brilliant.
@ChongFrisbee
3 жыл бұрын
And yet, that is exactly what I have acomplished! I also only use lists and my code also runs fast, but is way way less elegant then that
@griof
3 жыл бұрын
Hairlessness actually fits you!
@xakkep9000
3 жыл бұрын
Try to use a tail recursive function. It allows you lazily store the intermediate values constructed from a consumed list 😊
@chaddaifouche536
3 жыл бұрын
Note that one of my favorite way to write dynamic programs in Haskell use Arrays but not imperatively : you can define your array lazily (as long as you're not trying to unbox its content at the same time), as such the definition of an element can completely refer to other elements of your array during its co mputation. Doing it like that you find yourselves using the original inefficient recursive function where you simply replace recursive calls by array reference. Here it would look like that (supposing xs is an array too) : let dp = listArray (bounds xs) (1 : map go [1..]) go i = sum . map (dp !) . takeWhile (\j -> xs ! i - xs ! j
@samuraijosh1595
Жыл бұрын
This is just tabulation right?
@gingergoat3027
3 жыл бұрын
I solved it in a spreadsheet
@iqwrjwqioprwjriopqrjpqowir
3 жыл бұрын
it's excelchan!
@JampyJumpers
2 жыл бұрын
Update: He has a full hair of head again.
@lhpaoletti
Жыл бұрын
But do you know why he doesn't post anymore? Does he stream?
@distant6606
Жыл бұрын
@@lhpaoletti he does on his other channel: tsoding daily. and yes he does regulary stream
3 жыл бұрын
Glad to have you back!
@mockingbird3809
3 жыл бұрын
IMHO, hairlessness looks very clean and more presentable
@teMplaryum
3 жыл бұрын
Interesting, useful and entertaining at the same time. Just keep going, mate!
@ik8452
3 жыл бұрын
Hello, I am sorry if it sounds like I am trashing your comment section. Your video got recommended to me even though I don't know what Haskell is (might be bcs I am learning to program, but in other language). I just want to say that you look like Saitama, a superhero character from anime called 'One Punch Man'. Good day.
@ameynarkhede8264
3 жыл бұрын
damn you look 10 years younger now
@cbleslie
3 жыл бұрын
RIP euro mullet. You will be missed.
@samuraijosh1595
Жыл бұрын
Wait is he dead
@LegoDinoMan
8 ай бұрын
No, @cbleslie was saying RIP to his hairstyle. @@samuraijosh1595
@Dzatoah
7 ай бұрын
no
@dudusami89
3 жыл бұрын
Damn, your content is sooooooo good
@SimGunther
3 жыл бұрын
Took you 6 months and all your hair to solve this problem? That's hardcore!
@linkernick5379
3 жыл бұрын
Haskell makes you look a lot cooler 😎
@TankorSmash
3 жыл бұрын
Glad your videos are back man. Plus the hairstyle kicks ass
@MrDubs
3 жыл бұрын
Damn I hope I look this good bald some day.
@maheerali531
3 жыл бұрын
Sir please continue the haskell rank.
@christianbrolin1482
3 жыл бұрын
Here's a solution with complexity O(n*log n) instead of O(n*n) using a lazily built map instead of list. Maybe it's easier to understand as well (input: ordered list of adapter joltages, not including the dummy 0, but including the wanted end joltage): import qualified Data.Map as M part2Map :: [Int] -> Int part2Map js = snd $ M.findMax pm where pm = M.fromDistinctAscList $ (0,1) : zip js (perm js) perm j = sum $ snd $ M.split (j-4) $ fst $ M.split j pm
@EidosGaming
3 жыл бұрын
Why doesn't the fibonacci zipWith work as fast with a function? I was very impressed by that trick, but then I tried doing fibonnaci :: Int -> Int -> [Int], where the arguments are the two starting numbers of the sequence, and suddenly it became the slowest fibonnacci I have ever seen (like, really slow, it took seconds to calculate the 10th element or so)
@SirFloIII
2 жыл бұрын
because it is not cached like the self-referential list. if you expand all the recursion, you end up with a 1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1
@EidosGaming
2 жыл бұрын
@@SirFloIII Yeah I found the solution since then. If you make an f :: [Int] inside the fib :: Int -> Int -> [Int] which uses the fib arguments but doesn't have them in its signature, then it works again!
@Techiesse
3 жыл бұрын
Hey! Rust is interesting. Gonna give it a shot.
@neat7673
3 жыл бұрын
I liked this vid, speцifically
@gabrielcoronelcascante9111
3 жыл бұрын
Ok, back to my HTML & CSS tutorial
@frankbourbon8499
3 жыл бұрын
Can you make a video calling haskell from other languages ?) Sorry if i'm trashing your comments) (спасибо, что вернулся :) )
@user-ss7eh7xf1b
3 жыл бұрын
Wow, one punch man has gone serious hardcore!
@TankorSmash
9 ай бұрын
Looking forward to more of these! It's been a while, even with the daily vids on the other channel
@pmadjidi
2 жыл бұрын
Great channel, I have learned a lot watching you coding Haskell!!
@JustSomeAussie1
3 жыл бұрын
Man you look a million times better with no hair
@ReagueOfRegends
3 жыл бұрын
Wow, you look great bald. Nice!
@pauloffborba
3 жыл бұрын
I love your work!
@monadstack
3 жыл бұрын
I have a question, how do you move your camera? 😂
@alejandroagua5813
3 жыл бұрын
Why would you tackle any problem with a hairy language like Haskell when other fluffy languages would do, unless you want to lose out all your hairs?
@ari_archer
2 жыл бұрын
NOOOOOOOOOOOOOOOOO I MISSED AoC
@greob
3 жыл бұрын
You should probably reduce the size of your camera frame, it takes a bit too much screen real estate. Thanks for sharing!
@AnarchySane
3 жыл бұрын
Do you cosplay Bragilevsky?
@RuRu-vm6yw
3 жыл бұрын
Can you be my mentor! This kind of challenges seems a walk in the park for you!
@minnerlas1730
3 жыл бұрын
Plenty of people use the best programming language, C, in 2020
@atuuuuum
3 жыл бұрын
yes.
@moose43h
4 ай бұрын
Much better
@animu5
Жыл бұрын
Ты что русский?
@3ombieautopilot
3 жыл бұрын
I wish you grew Mohawk :)
@medicalschoollegends3836
Жыл бұрын
Bro I can't stop laughing wtf
@ishdx9374
3 жыл бұрын
Tsonathan blow
@orion3486
3 жыл бұрын
Please can you make a video explain category theory using typescript?
@krasen4oo
3 жыл бұрын
Why does it have to be in Typescript?
@orion3486
3 жыл бұрын
@@krasen4ooi like the way he explain functional programming concepts using typescript and i am still beginner in Haskell
@orion3486
3 жыл бұрын
@@krasen4ooi like the way he explain functional programming concepts using typescript and i am still beginner in Haskell
@kaksisve4012
3 жыл бұрын
Now you look so seriously!
@msilence2009
3 жыл бұрын
Дай угадаю, в армию забирают?
@amphitheres
3 жыл бұрын
oh my god
@AlexsandError
3 жыл бұрын
nice haircut
@sourav_-_7038
2 жыл бұрын
do some osdev videos bro.
@lilpeikko
3 жыл бұрын
FeelsGoodMan CANCER
@spicynoodle7419
3 жыл бұрын
Porn folder: 10.7 GB xD
@funmath3835
2 жыл бұрын
I to lost my hair
@nexovec
3 жыл бұрын
couldn't solve AoC? Too ba(l)d
@grmancool
2 жыл бұрын
I'd say grow a beard and you'd look Chad af
@septuleptum
3 жыл бұрын
Нихуя не понял, но очень интересно.
@linkernick5379
3 жыл бұрын
Дыс ассент шуд хэлп ю ту андерстэнд, бро!
@septuleptum
3 жыл бұрын
@@linkernick5379 я фронтендер, мне уже ничего не поможет :)
@gustavojoaquin_arch
Жыл бұрын
F
@BlockOfGaming
2 жыл бұрын
700th like :)
@Jellyman916
3 жыл бұрын
what is this atrocity? use fold, my dude diffAdapters rs = foldr go (\(_,o,t) -> o*t) (sort rs) (0,0,1) where go n r (p,one,three) = case n-p of 1 -> r (n,one+1,three) 3 -> r (n,one,three+1)
@monke5100
3 жыл бұрын
Cancer or aids?
@Tsoding
3 жыл бұрын
Haskell
@axa3547
3 жыл бұрын
If it doesn’t make u rich it’s not worth it
@ne4to777
3 жыл бұрын
you have "let", so it is not a FP, sorry)
@Olexrus
Жыл бұрын
> Porn Folder: 10.7GB (too small pepetsnds) very important info in status bar :D
Пікірлер: 87