Codewars Kata - Maths Trumps Computer Science
Channel:
Subscribers:
686
Published on ● Video Link: https://www.youtube.com/watch?v=vqUIVVsf8_0
I always think Computer Science is really a specialism of maths (Turing was first and foremost a mathematician) and this problem illustrates how the 'mathematical' approach trumps the 'computational' approach.
-- Watch live at https://www.twitch.tv/retrojimmyx
0:00 Defining the problem
3:24 Find the number of digits that make up a triangle with n rows
10:00 Formula to find the first n odd numbers starting form 1
14:25 Refactoring code
19:19 Simplifying the equation
27:14 The answer
Other Videos By RetroJimmyX
2024-02-25 | Data's Secret Special Ability (Star Trek Insurrection) |
2024-02-23 | Gul Dukat's Dream Comes True (Star Trek DS9) |
2024-02-23 | Don't Sit in Worf's Seat (Star Trek DS9) |
2024-02-23 | Dead Island 2 |
2024-02-23 | Codewars - More Basic Python |
2024-02-22 | Skribbl.io |
2024-02-20 | Bridge Constructor: The Walking Dead (Ch. 1) |
2024-02-20 | Zombie Derby |
2024-02-20 | Lab Crisis |
2024-02-19 | Catan - Cities & Knights and then Seafarers |
2024-02-18 | Codewars Kata - Maths Trumps Computer Science |
2024-02-17 | Catan - Couple of C&K with Scarlet |
2024-02-17 | Super Impossible Road |
2024-02-17 | Catan - Another couple of C&K games against Scarlet |
2024-02-17 | Codewars - Python Challenges (Part 2) |
2024-02-17 | Catan - A close match up until the last minute |
2024-02-16 | Shadow Warrior (Chapter 1) |
2024-02-16 | Catan - Couple of games of 2 Player Versus, with an AI |
2024-02-16 | Pinball FX3 |
2024-02-16 | Pixel Strike 3D |
2024-02-15 | The Excrawlers |
Tags:
games
twitch