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.