Plant the Crop - Free Code Camp #155 Daily Challenge
2 minWe solve the "Plant The Crop" challenge: given a field and a crop type, we calculate how many plants fit, explaining the reasoning, code, and visuals.
Par For The Hole - FreeCodeCamp #154 Daily Challenge
2 minWe solve "Par For The Hole" (FreeCodeCamp Daily Challenge): how to map golf scores to classic terms. Analysis, commented code, and reflections.
Tic Tac Toe - FreeCodeCamp #153 Daily Challenge
3 minWe solve "Tic Tac Toe" (FreeCodeCamp Daily Challenge): how to determine the state of a Tic Tac Toe game. Analysis, commented code, visuals, and reflections.
Circular Primes - FreeCodeCamp #152 Daily Challenge
3 minWe solve "Circular Prime" (FreeCodeCamp Daily Challenge): how to detect if a number is a circular prime? Analysis, commented code, visuals, and reflections.
Sorted Array? - FreeCodeCamp #151 Daily Challenge
2 minWe solve "Sorted Array?" by analyzing how to determine if an array is sorted in ascending order, descending order, or is unsorted. Includes explanation, code, visuals, and reflections.
Markdown Unordered List Parser - FreeCodeCamp #150 Daily Challenge
2 minWe solve "Markdown Unordered List Parser" from FreeCodeCamp #150 Daily Challenge using JavaScript.
Vowel Case - FreeCodeCamp #149 Daily Challenge
3 minWe solve "Vowel Case", a FreeCodeCamp challenge that involves string manipulation and character classification.
Tire Pressure - FreeCodeCamp #148 Daily Challenge
4 minWe solve "Tire Pressure", a FreeCodeCamp challenge that involves unit conversion and pressure classification.
Leap Year Calculator - FreeCodeCamp #147 Daily Challenge
2 minWe solve "Leap Year Calculator", a FreeCodeCamp challenge that validates leap years according to Gregorian calendar rules. Includes analysis, commented JavaScript code, diagrams, and reflections.
Longest Palindromic Substring - LeetCode #5 Daily Challenge
4 minWe solve "Longest Palindromic Substring", a LeetCode Daily Challenge where we find the longest palindromic substring inside a given string.
Left-Handed Seat at the Table - FreeCodeCamp #146 Daily Challenge
4 minWe solve "Left Handed Seat at the Table", a FreeCodeCamp Daily Challenge where we model seat orientation and count how many seats a left-handed person can occupy.
Median of Two Sorted Arrays - Leetcode #4 Daily Challenge
9 minWe solve "Median of Two Sorted Arrays" (Leetcode #4): a visual and simple guide to understand the optimal partition algorithm.
Nth Fibonacci Number - FreeCodeCamp #145 Daily Challenge
1 minSolving "Nth Fibonacci Number" (FreeCodeCamp #145): explanation, JavaScript implementation and precision considerations.
Resolution Streak - FreeCodeCamp #144 Daily Challenge
2 minWe solve "Resolution Streak" from FreeCodeCamp #144 Daily Challenge using JS.
Photo Storage - FreeCodeCamp #40 Daily Challenge
2 minWe solve "Photo Storage" from FreeCodeCamp, an algorithm challenge that involves calculating the storage space needed for a collection of photos.
Slug Generator - FreeCodeCamp #38 Daily Challenge
2 minWe solve "Slug Generator" from FreeCodeCamp, an algorithm challenge that involves converting a blog title into a URL-friendly slug.
Sentence Capitalizer - FreeCodeCamp #37 Daily Challenge
2 minWe solve "Sentence Capitalizer" from FreeCodeCamp, an algorithm challenge that involves capitalizing the first letter of each sentence in a given string.
Thermostat Adjuster - FreeCodeCamp #36 Daily Challenge
2 minWe solve "Thermostat Adjuster" from FreeCodeCamp, an algorithm challenge that involves adjusting a thermostat temperature based on specific rules.
Markdown Italic Parser - FreeCodeCamp #143 Daily Challenge
4 minWe solve "Markdown Italic Parser" from FreeCodeCamp, an algorithm challenge that involves parsing Markdown text to convert it into HTML with italics.
Sum the Numbers in a String - FreeCodeCamp #142 Daily Challenge
2 minWe analyze and solve the "Sum the String" problem: extract and sum all positive integers within a text string. Includes explanation, code, visuals, and complexity analysis.
Take Off Fuel - FreeCodeCamp #141 Daily Challenge
4 minWe analyze and solve "Take Off Fuel": a FreeCodeCamp challenge about unit conversion and rounding logic. Includes step-by-step explanation, JavaScript code, and complexity analysis.
Screaming Snake Case - FreeCodeCamp #140 Daily Challenge
2 minWe solve "Screaming Snake Case": converting variable names between different formats (camelCase, PascalCase, snake_case, kebab-case) to UPPERCASE_WITH_UNDERSCORES. Includes regex, complexity analysis, and visuals.
Rock Paper Scissors - FreeCodeCamp #139 Daily Challenge
1 minWe solve "Rock Paper Scissors" (FreeCodeCamp) with clear and efficient logic in JavaScript. Includes analysis, code, and visuals.
Sum of Divisors - FreeCodeCamp #138 Daily Challenge
2 minWe solve "Sum of Divisors" from FreeCodeCamp, explaining the analysis, development, and step-by-step implementation in JavaScript.
Snowflake Generator - FreeCodeCamp #137 Daily Challenge
2 minWe solve the "Snowflake Generator" challenge from FreeCodeCamp: string manipulation to mirror text patterns. Includes explanation, code, edge cases, and analysis.
Fill The Tank - FreeCodeCamp #39 Daily Challenge
1 minWe solve "Fill The Tank", a FreeCodeCamp challenge involving simple math to determine the cost of filling a fuel tank.
Markdown Image Parser - FreeCodeCamp #136 Daily Challenge
1 minWe solve FreeCodeCamps "Markdown Image Parser": extract and convert Markdown image strings to HTML using JavaScript and regular expressions. Includes explanation, code, and analysis.
Missing Numbers - FreeCodeCamp #34 Daily Challenge
1 minWe solve "Missing Numbers" from FreeCodeCamp, an algorithm challenge about finding missing numbers in a sequence.
Screen Time - FreeCodeCamp #33 Daily Challenge
2 minWe solve "Screen Time" from FreeCodeCamp, a challenge about user data manipulation to identify excessive app usage on a specific day.
Email Chain Count - FreeCodeCamp #135 Daily Challenge
1 minWe solve "Email Chain Count", a FreeCodeCamp challenge about counting prefixes in email subjects. Includes analysis, code, visuals, and reflections.
Reverse Sentence - FreeCodeCamp #32 Daily Challenge
1 minWe solve "Reverse Sentence" from FreeCodeCamp, a string manipulation challenge: reverse the order of words and normalize spaces.
Traveling Shopper - FreeCodeCamp #134 Daily Challenge
2 minWe solve "Traveling Shopper" from FreeCodeCamp, a daily challenge exploring optimization algorithms and efficient routes for shoppers visiting multiple stores.
Daylight Hours at the Solstice - FreeCodeCamp #133 Daily Challenge
2 minWe solve the challenge of estimating daylight hours by latitude on the December solstice, using a reference table and nearest-value search.
Purge Most Frequent - FreeCodeCamp #132 Daily Challenge
2 minWe solve "Purge Most Frequent": remove all most frequent elements from an array, handling ties and various types. Includes explanation, code, and analysis.
Reverse Integer - LeetCode #7 Daily Challenge
2 minWe solve LeetCode`s "Reverse Integer": reverse the digits of a 32-bit integer, handling overflow and edge cases. Includes explanation, code, and analysis.
Pairwise - FreeCodeCamp #131 Daily Challenge
3 minWe analyze and solve the pairwise problem: find pairs that sum to a target and sum their indices. Includes explanation, code, visuals, and reflections.
Checkerboard - FreeCodeCamp #130 Daily Challenge
2 minWe solve "Checkerboard", FreeCodeCamp challenge #130, by building a checkerboard using efficient JavaScript algorithms.
Array Difference - FreeCodeCamp #31 Daily Challenge
4 minWe solve 'Array Diff': how to find the elements that are only in one of the two arrays but not in both.
Unique Characters - FreeCodeCamp #30 Daily Challenge
1 minSolving the classic 'Unique Characters' problem: how do you know if a string has all unique characters? We analyze, optimize, and explain step by step.
Acronym Builder - FreeCodeCamp #29 Daily Challenge
1 minWe solve FreeCodeCamp’s "Acronym Builder": problem analysis, efficient solution, and complexity discussion.
Consonant Count - FreeCodeCamp #128 Daily Challenge
1 minWe solve FreeCodeCamp’s "Consonant Count": problem analysis, efficient solution, and complexity discussion.
Roman Numeral Parser - FreeCodeCamp #28 Daily Challenge
1 minWe solve FreeCodeCamp’s "Roman Numeral Parser": problem analysis, efficient solution, and complexity discussion.
Speed Limit - FreeCodeCamp #127 Daily Challenge
2 minWe solve "Speed Check", a FreeCodeCamp challenge involving speed calculations and speed limits.
Matrix Rotate - FreeCodeCamp #27 Daily Challenge
2 minWe solve "Matrix Rotate" from FreeCodeCamp Daily Challenge #27. We analyze the problem, develop a step-by-step solution, and discuss complexity and edge cases.
Capitalize It - FreeCodeCamp #126 Daily Challenge
2 minWe solve "Capitalize It", FreeCodeCamp daily challenge #126. We analyze the problem, develop a JavaScript solution, and explain the algorithm complexity.
Conway's Game of Life - FreeCodeCamp #125 Daily Challenge
3 minExplore Conway's Game of Life: rules, patterns, code, and curiosities. A computer science classic explained step by step, with examples and tips to go further.
Top 3 Most Frequent Words - FreeCodeCamp #35 Daily Challenge
2 minWe analyze and solve the "Most Frequent Words" challenge: finding the top 3 words in a paragraph. Includes explanation, code, visuals, and complexity analysis.
Validador de Ipv4 - FreeCodeCamp #25 Daily Challenge
2 minResolvemos "Ipv4 Validator", un desafío de FreeCodeCamp que trabaja validación y análisis de strings.
Vowel Repeater - FreeCodeCamp #25 Daily Challenge
2 minWe solve "Vowel Repeater", a FreeCodeCamp challenge involving string manipulation and progressive logic.
Inventory Update - FreeCodeCamp #124 Daily Challenge
3 minWe solve "Inventory Update" from FreeCodeCamp, a daily coding challenge involving array and data structure manipulation.
Pangram - FreeCodeCamp #24 Daily-Challenge
2 minWe solve "Pangram" from FreeCodeCamp, analyzing the problem, developing an efficient JavaScript solution, and discussing its complexity.
Hex Generator - FreeCodeCamp Daily Challenge
2 minWe solved "Hex Generator", a FreeCodeCamp challenge involving generating a random hexadecimal color code with a specified dominant color. We analyze the problem, develop an efficient solution, and discuss its complexity.
Array Duplicates - FreeCodeCamp Daily Challenge
2 minWe solve "Array Duplicates", a FreeCodeCamp challenge that involves finding duplicate numbers in an array of integers. We analyze the problem, develop an efficient solution, and discuss its complexity.
Candlelight - FreeCodeCamp Daily Challenge
2 minSolving the 'Candlelight' challenge from FreeCodeCamp, analyzing the problem and developing an efficient solution in JavaScript.
Roman Numeral Builder - FreeCodeCamp Daily Challenge
2 minWe solve "Roman Numeral Builder" from FreeCodeCamp, converting integers to Roman numerals with a clear and efficient approach.
Markdown Bold Parser - FreeCodeCamp Daily Challenge
4 minWe solve "Markdown Bold Parser", the FreeCodeCamp daily challenge, explaining the analysis, solution, and implementation in detail.
Second Best - FreeCodeCamp Daily Challenge
2 minWe solved "Second Best" from FreeCodeCamp, a challenge that involves finding the second most expensive laptop within a given budget, ignoring duplicate prices.
Unorder Of Operations - FreeCodeCamp Daily Challenge
2 minWe Solve "Unorder Of Operations" from freeCodeCamp Daily Coding Challenge for August. We analyze the problem, develop a JavaScript solution, and discuss its complexity.
Most Frequent - FreeCodeCamp Daily-Challenge
3 minWe solve "Most Frequent" from FreeCodeCamp, explore alternatives, and analyze its complexity.
Pounds to Kilograms - FreeCodeCamp Daily Challenge
2 minWe solve "Pounds to Kilograms" from the FreeCodeCamp Daily Challenge, explaining the analysis, development, and complexity of the solution.
String Compression - FreeCodeCamp Daily-Challenge
5 minWe solve the FreeCodeCamp daily challenge "String Compression", explore alternatives, and analyze its complexity.
Date Formatter - FreeCodeCamp Daily Challenge
2 minToday we solve "Date Formatter", a classic string and date manipulation challenge.
Symmetric Difference - FreeCodeCamp Daily Challenge
4 minHow to find exclusive elements between two arrays using Sets in JavaScript. O(n+m) complexity analysis and applied set theory.
Count Partitions with Even Sum Difference - LeetCode Daily Challenge
5 minWe solve "Count Partitions with Even Sum Difference" from LeetCode Daily Challenge using TypeScript.
Rotate Image - LeetCode #48 Top Interview 11/150
1 minSolving the "Rotate Image" problem from LeetCode (Top Interview 150). We explain the transpose and reverse approach.
Permutation Count - FreeCodeCamp Daily Challenge
2 minWe solve the "Permutation Count" problem from FreeCodeCamp Daily Challenge. We explain the mathematical formula and present an efficient solution in JavaScript.
markdown-ordered-list-item-converter
2 minIn today’s challenge, we tackle converting a Markdown ordered list item to its equivalent HTML format. The task is to validate the input string’s format and return the requested result or an error message as appropriate. To solve it, we fir...
Valid Sudoku - LeetCode #36 Top-Interview 10/150
3 minWe validate a 9x9 Sudoku board in a single pass, explaining the key formula and useful patterns for interviews.
Camel to Snake - FreeCodeCamp Daily Challenge
2 minSolving the FreeCodeCamp daily challenge: 'Camel To Snake'. It sounds like a circus act, but it's a string manipulation problem.
Miles to Kilometers - FreeCodeCamp Daily Challenge
1 minSolving the miles to kilometers conversion challenge, analyzing the process and presenting an optimal JavaScript solution.
AI Detector - FreeCodeCamp Daily Challenge
2 minSolving the "AI Detector" daily challenge: detecting AI-generated text using specific string analysis rules.
ball-trajectory - FreeCodeCamp Daily Challenge
3 minHave you ever wondered how classic video games like Pong calculate the movement of a ball? Today's FreeCodeCamp challenge invites us to simulate that behavior in a matrix using JavaScript. Given a matrix (array of arrays) indicating the cur...
Reverse Parentheses - FreeCodeCamp Daily Challenge
2 minSolving the FreeCodeCamp daily challenge "Reverse Parentheses" to invert content inside parentheses in JavaScript.
Camel Case - FreeCodeCamp Daily Challenge
2 minSolving FreeCodeCamp daily challenge for converting strings to camel case in JavaScript.
Jump Game - LeetCode #55 Top-Interview 9/150
2 minGreedy approach to solve the Jump Game problem from LeetCode.
Maximum Subarray Sum with Length Divisible by K - LeetCode Daily Challenge
2 minStep-by-step explanation of LeetCode #3381: 'Maximum Subarray Sum with Length Divisible by K'.
What's My Age Again? - FreeCodeCamp Daily Challenge
1 minSolving 'What's My Age Again?' from FreeCodeCamp Daily Challenge using JavaScript.
Best Time to Buy and Sell Stock II - LeetCode #122 Top-Interview 8/150
2 minSolving the LeetCode Top-Interview problem "Best Time to Buy and Sell Stock II" using a profit-summing approach.
is-fiz-buzz
2 minToday's problem is a variant of the classic "FizzBuzz"challenge, which happened to be yesterday's daily problem. In this new task, we must check if a given array strictly follows the FizzBuzz rules from 1 up to the last element. Given an ar...
Best Time to Buy and Sell Stock - LeetCode #121 Top-Interview 7/150
2 minToday we tackle LeetCode #121: Best Time to Buy and Sell Stock. This is the seventh challenge in the LeetCode Top Interview 150 set. You are given an array prices where prices[i] represents the price of a stock on day i. Your goal is to max...
fizz-buzz
1 minFizzBuzz is one of the most popular problems in technical interviews and programming challenges. Although it seems simple, it's perfect for practicing logic, conditionals, and array manipulation. Given an integer $n$, return an array with t...
Binary Prefix Divisibility by Five - LeetCode #1018 Daily Challenge
3 minEfficient algorithm to check divisibility by five for binary prefixes.
Message Validation - FreeCodeCamp Daily Challenge
1 minWe solve the "Message Validator" problem from FreeCodeCamp using regular expressions in JavaScript.
Character Count - FreeCodeCamp Daily Challenge
1 minWe solve the "Character Count" problem from FreeCodeCamp using arrays and string manipulation in JavaScript.
Recipe Scale - FreeCodeCamp Daily Challenge
2 minWe solve the "Recipe Scale" problem from FreeCodeCamp by applying string manipulation and data structures in JavaScript.
Least Common Multiple (LCM) - FreeCodeCamp Daily Challenge
2 minWe solve the Least Common Multiple (LCM) problem using the relationship between GCD and LCM in JavaScript.
Rotate an Array - LeetCode #189 - Top-Interview Series 6/150
3 minWe solve the LeetCode 'Rotate Array' problem with three different approaches, including an optimized one with O(n) time and O(1) extra space.
Majority Element - LeetCode #169 - Top Interview Series 5/150
2 minWe solve the "Majority Element" problem from LeetCode (#169) using TypeScript. We explore an efficient solution with $O(n)$ time and $O(1)$ space complexity, applying the Boyer-Moore Voting algorithm.
Longest Word - FreeCodeCamp Daily Challenge
2 minSolving the "Longest Word" problem from FreeCodeCamp Daily Challenge using JavaScript.
Remove Duplicates from a Sorted Array II - LeetCode #80 - Top Interview Series 4/150
2 minWe solve the fourth problem in LeetCode's Top Interview 150 series: Remove Duplicates from Sorted Array II. We explore an efficient solution.
Markdown Heading Converter - FreeCodeCamp Daily-Challenge
2 minSolving the "Markdown Heading Converter" challenge from FreeCodeCamp, converting Markdown headings to HTML.
Building a Nutritional Tracker: Part 7 – Migration to Next.js, Storybook, and Accessibility
6 minIn this post I share the process of migrating the app to Next.js, the challenges faced, and the solutions implemented.
100 Characters - FreeCodeCamp Daily Challenge
3 minWe solve the "100 Characters" problem from FreeCodeCamp Daily Challenge with a detailed explanation.
remove-duplicates-from-sorted-array
1 minBuilding a Nutritional Tracker: Part 6 — Visual Architecture & Accessibility
3 minHow to design a mobile-first, accessible, and scalable UI using TailwindCSS v4, reusable components, and visual testing with Storybook.
Fingerprint Test - FreeCodeCamp Daily Challenge
1 minWe solve the FreeCodeCamp daily challenge "fingerprint-test".
Count Rectangles — simple explanation
2 minSimple, clear explanation to count axis-aligned integer rectangles inside a w×h rectangle, with math notation and Mermaid diagrams.
Remove Element - LeetCode #27 - Top Interview Series 2/150
2 minDidactic explanation of the in-place Remove Element solution (LeetCode 27) using Two Pointers, with examples, tests and visualizations.
Greatest Common Divisor (GCD) - FreeCodeCamp Daily Challenge
4 minWe solve the Greatest Common Divisor (GCD) problem using Euclid's Algorithm in JavaScript.
Days Until Weekend - FreeCodeCamp Daily Challenge
3 minSolution analysis for the Days Until Weekend problem, with calendar visualization, step-by-step explanation and efficient date handling in JS.
Shift Array - FreeCodeCamp Daily Challenge
4 minExplained solution to the problem of shifting an array N positions using modular normalization and tests. Strategies, edge cases, and visualization.
Building a Nutritional Tracker: Part 5 - The Registration Form
3 minHow to connect validation, persistence, and the visual form using React Hook Form. Test examples and an outlook towards styling as a next step.
Email Signature Generator - FreeCodeCamp Daily Challenge
4 minWe solve the FreeCodeCamp daily challenge: "Email Signature Generator". We explain the approach, complexity, and provide a TypeScript solution.
Merging Sorted Arrays - LeetCode #88 - Top Interview 1/150
3 minWe solve the first problem from the LeetCode Top Interview 150 Study Plan series: "Merge Sorted Array". We explain the approach, complexity, and provide a TypeScript solution.
Vowels and Consonants: FreeCodeCamp Daily Challenge
1 minSolving the FreeCodeCamp daily challenge: Vowels and Consonants. Step-by-step analysis and explanation of the solution.
Building a Nutritional Tracker: Part 4 - Persistence Layer Implementation
4 minHow to save and retrieve validated records in localStorage, handling errors and tolerating corrupt data. Includes commented code, diagrams, and practical tests.
Get The Extension - FreeCodeCamp Daily Challenge
3 minSolving FreeCodeCamp's daily challenge: Extract the extension from a filename.
Building a Nutritional Tracker: Part 3 - Data Validation with Zod
2 minHow to implement robust data validation with Zod, leverage type inference in TypeScript, and write practical unit tests for your React model.
Count Operations to Obtain Zero - LeetCode #2169
5 minSolving the LeetCode problem: Count Operations to Obtain Zero.
Word Search: FreeCodeCamp Daily Challenge
3 minImplementation of an algorithm to search for words in a 2D matrix, exploring in the four main directions.
Compare Version Numbers - LeetCode #165
3 minSolving the Compare Version Number problem from LeetCode. Step-by-step analysis, multiple solutions and JavaScript optimizations.
Character Limit - FreeCodeCamp Daily Challenge
3 minSolving the character limit problem from November 7th FreeCodeCamp challenge. Step-by-step analysis with flow diagram.
Smallest Number With All Set Bits - LeetCode #3360
1 minSolving the LeetCode problem "Smallest Number With All Set Bits" (#3360). Analysis, strategy and TypeScript solution.
Counting Cards — FreeCodeCamp Daily Challenge
3 minSolution to FreeCodeCamp daily challenge: Counting Cards. Step-by-step explanation and strategy analysis.
Weekly Finder: FreeCodeCamp Daily Challenge
3 minFull analysis of FreeCodeCamp Weekly Finder challenge: how to get the weekday from an ISO date string while avoiding timezone pitfalls, plus alternative approaches.
Building a Nutritional Tracker: Part 2 - Testing Environment Setup
4 minPractical guide to setting up Vitest, Testing Library, and automating testing in React + Vite. Includes diagrams, best practices, explanations for beginners, and troubleshooting.
Building a Nutritional Tracker: Part 1 - Data Model Design
1 minAn improved guide to designing the core data model for a nutritional tracker in React: practical decisions, visual diagrams, and scalable architecture.
Matrix Builder - FreeCodeCamp Daily Challenge
3 minSolution to the FreeCodeCamp daily challenge: building matrices with Array.from(). Comparison of approaches and analysis of when to use each one.
Image Search - FreeCodeCamp Daily Challenge
3 minSolution to the FreeCodeCamp daily challenge: implement an image search function that filters file names by search term, ignoring case.
Power of Two - LeetCode #231
4 minSolving the Power of Two problem from LeetCode. Step-by-step analysis, multiple solutions and JavaScript optimizations.