2024-05-31 | ➕ Add Two Numbers ⌨️

#AI Q: 🧩 Do logic puzzles sharpen your focus or just drain your energy?

🔗 Linked Lists | 💻 Algorithms | 🟦 TypeScript | ⏱️ Big-O Analysis
https://bagrounds.org/reflections/2024-05-31

2024-05-31 | ➕ Add Two Numbers ⌨️

🏋🏻 Practice; leetcode.com/problems/add-two-numbers; You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list. You may assume the two numbers do not contain any leading zero, except the number 0 itself. ; /** ; * Definition for singly-linked list. ; * class ListNode { ; * val: number ; * next: ListNode | null ; * constructor(val?: number, next?: ListNode | null) { ; * this.val = (val===undefined ? 0 : val) ; * this.next = (next===undefined ? null : next) ; * } ; * } ; */ ; ; /* Plan ; Possible approaches ; 1. follow the linked lists and add dig...

bagrounds.org