Error converting content: marked is not a function
location:: Home - Avalon 2, Boston victory-hour:: pomodoro-blocks:: wake-up:: day:: icon:: π πβ‘οΈππππ - 8-9 coffe date with boo @Places/Kicco, Boston - #sid/dakiπ¦ - yes yes yes, keep it in - ποΈ 9:15 - 10:45 AM #practice/Readingπ π π π collapsed:: true - Books/The Status Game π π - Books/The Righteous Mind οΏ½ - back at it - **11:44 AM, day. Morning Pages** - Remember: - Hola. Friyay so chill. All will be taken care of. - 10:45 - 11:45 AM - RenovateAI App metrics and data - we are out of money :).. #ouch - Interesting dive into Revenue Based Financing options for #RenovateAI App. Getting wet with Sanlo.io - 11:45 - Form i9 verification nonsense #JOKR - πΊ βοΈ 12 - 1 PM #tv/coffeewithscottadams - π¨ 1 PM ##logπͺ΅/t&e/ercanπ - why do I get so vocally tired speaking with this kid moster? - Clean burn this shit and prep for algo - 2:20 - 3:45 PM: let's go P/2023 JOKR Exit π π π . Fun. #practice/codingπ§βπ» collapsed:: true - Algo/Matrix Transpose β . Damn got hit by javascript quick for initalizing 2d matrix - yikes 20 mins wasted - And thanks #ChatGPT to help debug! - ``` Ah, Sid, it seems you've stumbled upon a classic JavaScript quirk! Let's dive deep into this problem and connect the dots. Your issue is related to how JavaScript handles object references, including arrays. When you initialize out using new Array(col).fill(new Array(row).fill(-1)), it's filling every element with a reference to the same array. So when you modify one row, it affects all the rows. ``` - right way to initialize with new array for each row - ` let out = new Array(col).fill(0).map(() => new Array(row))` - Also got a one line solution which I hanve't grokked yet ``` export function transposeMatrix(matrix) { return matrix[0].map((_, colIndex) => matrix.map(row => row[colIndex])); } ``` - - Ok. 30 mins. Let's do one more. - Algo/Evaluate Expression Tree β Ok feeling good. 20 mins. - Also a #techlearning - Math.floor does not always round down a number! -4.5 became -5 -- negative number so it's rounding the decimal up not down. Math.trunc will give me 4 for (9/-2) #nice - Got 10 min. 1 more :)_ - Algo/Middle Node β 12 mins - got it done with some slight struggle with mid calculation - it was simple as math.floor() :/ - second solution using slow and fast pointer is interesting. I did think about it. but I had O(n) anywa - - 5 mins #practice/taichiβ―οΈ this awakens - 4:10 - 6 PM P/AI Expertise π π π π **Day 79** - Practical Deep Learning for Coders Part2 Lesson 15 - **00:23 PM Lights Off** - Before bed yoga - Indian food and some beer. So full. Must fast tomorrow. - Wanna feel lean like shahid kapoor. Energetic. Might have to do training like athlete. Maybe a less injury prone goal than one rep max. Hmm . I need to create a goal - I also canβt be left out on attractive and appeal department. With the hard work, discipline and entrepreneurial spirit at work I canβt be a shabby, unshaven, lose looking guy in the elevators. Iβm evaluating by how it makes me feel. I donβt like myself. So I must do something. - As a system I need to train. Train early AM. Get it flowing. Sweat. Protein. Fit. Blood and oxygen rushing in veins. Hmm. I need that #sid/2013 to come to #2023sid hmm - that could be the North Star βοΈ