Today’s T-Class covered core programming concepts from Compatibility to Functions
From Compatibility to Functions, building strong programming fundamentals step by step 🚀
Grateful for the learning journey 🙌
#Learning#ChaiCode#Cohort#LearnInPublic#Cohort26#ProgrammingSkills
💼 Code Quest – Day 23
Mission: Find the average salary while ignoring the lowest & highest salaries.
Tech: Use min & max element and sum up the rest → divide
Result: Clean solution with O(n) time complexity and float point handling
#LeetCode#Cplusplus#DSA#Programmingskills
🤖 Code Quest – Day 22
Mission: Count the odd numbers between two given numbers (inclusive).
Tech: Use math → (high - low)/2 plus a check if either boundary is odd.
Result: Efficient O(1) solution, no loops needed ✅
#LeetCode#Cplusplus#DSA#Programmingskills
0⃣Code Quest – Day 21
Mission: Set all elements in same row & column to zero if an element is zero.
Tech: Use two boolean flag to mark if the first row and column need to be zeroed out.
Result: The matrix is correctly updated in-place
#LeetCode#Cplusplus#DSA#Programmingskills
🤖 Code Quest – Day 20
Mission: Print all elements of a matrix in spiral order.
Tech: Use boundaries (top, bottom, left, right) → move layer by layer in a loop.
Result: Matrix unwrapped in a perfect spiral ✅
#LeetCode#Cplusplus#DSA#Programmingskills
🤖 Code Quest – Day 17
Mission: Find the customer with maximum wealth from a bank account matrix.
Tech: Sum each row → track the max.
Result: Max wealth returned 💰✅
#LeetCode#Cplusplus#DSA#Programmingskills
🤖 Code Quest – Day 16
Mission: A robot moves on an infinite plane with instructions G (go), L (left), R (right).
Tech: Track (x, y) position current direction → instructions
Result: Returns to origin or changes direction → Bounded
#LeetCode#Cplusplus#DSA#Programmingskills
🎮 Code Quest – Day 15
Mission: Two players A & B play Tic Tac Toe on a 3×3 grid. Who wins, or is it a draw?
Tech: Track rows, columns & diagonals → 1 for A, -1 for B
Result: A wins ✖ | B wins 〇 | All filled, no winner → Draw 🤝
#LeetCode#Cplusplus#DSA#Programmingskills
🤖 Code Quest – Day 14
Mission: A robot moves on a 2D plane. Can it return back to its origin (0,0) after move?
Tech: Track x, y → increment/decrement on each move → check if (0,0) at the end.
Result: Input: "UD" Output: true
#LeetCode#Cplusplus#DSA#Programmingskills
🧮Code Quest - Day 11
Mission: Find the length of the last word in a string.
Tech: A single pass through the string from right to left to count non-space characters.
Result: "Hello World" → 5 ✅ | " fly me to the moon " → 4 ✅
#LeetCode#Cplusplus#DSA#Programmingskills
📐 Code Quest – Day 9
Mission: Check if an array can be rearranged into an Arithmetic Progression.
Tech: Sort → calculate common difference → validate consecutive elements.
Result: [3,5,1] → true ✅ | [1,2,4] → false ❌
#LeetCode#Cplusplus#Programmingskills