Daily Coding Challenges & Projects
Weekend
Frontend Mini Project Challenge
Theme : Mini Frontend Projects
Challenge :
Create a Dark Mode Toggle
- Use HTML, CSS, and JavaScript (or React/Vue if you want)
- Store the user’s preference in localStorage so it persists after reload.
Bonus : Add a smooth transition effect between light and dark modes.
Hint : You can toggle a dark class on the body and define different color variables in CSS.
Backend Challenge
Category : Scala, R, Swift, TypeScript
Challenge :
Create a REST API in TypeScript ( Node.js + Express ) that:
- GET /random-quote returns a random motivational quote from an array.
- POST /add-quote adds a new quote to the array.
- Data should be stored in memory (no DB required for now).
Bonus : Add request validation using a TypeScript interface and respond with errors if invalid.
Database Query Challenge
Problems on SQL - HR Database :
- Find the top 5 highest-paid employees
- Find employees who joined in the last 6 months
Data Structures & Algorithms Challenge
- Easy:
- Problem :Check if a string is a palindrome (ignore spaces & case).
- Hint :Use replace(/\s/g, '') to remove spaces before checking.
- Medium:
- Problem : Implement a stack that supports getMin() in O(1) time.
- Hint :Use an auxiliary stack to store minimum values.
- Hard:
- Problem :Given an array, find the maximum sum of a subarray (Kadane’s Algorithm).
- Hint :Keep track of max_ending_here and max_so_far.
Bug of the Day
Language : TypeScript
Buggy Code:
function greetUser(name: string) {
return "Hello, " + name.toUppercase();
}
console.log(greetUser("Alex"));
Challenge : Find and fix the issue.
📋 Daily Micro-Project
Type : Backend
Task :
Build a small API in Swift (Vapor) that:
- Returns current server time on /time endpoint.
Bonus : Format time in ISO 8601 format.
Trivia: 5 Fun Facts
- TypeScript was created by Microsoft in 2012.
- Scala combines object-oriented and functional programming.
- R is one of the most popular languages for data science.
- Swift was announced by Apple in 2014 at WWDC.
- JavaScript was originally called Mocha.
Tool & Resource of the Day
Tool : Insomnia
Use : A modern REST API client.
- Great for testing REST and GraphQL APIs.
- Has environment variable support and automated testing.
Interview Question of the Day
Daily Interview Questions
-
Frontend :
- How do CSS variables work, and why use them over SASS variables?
- Explain event bubbling in JavaScript.
- What are controlled vs uncontrolled components in React?
- How does Vue.js handle reactivity?
-
Backend :
- What are TypeScript interfaces and how do they differ from types?
- Explain how Scala handles immutability.
- How does R handle data frames internally?
- What are Swift optionals and why are they useful?
- What is a clustered index?
- Explain the difference between UNION and UNION ALL.
- How can you prevent SQL injection?
- What is a CDN and how does it improve performance?
- Explain the CAP theorem in distributed systems.
Daily Quiz Challenge
- What is the output?
Frontend ) :
console.log(typeof null);
- Which TypeScript keyword is used to define a constant?
- What is the primary purpose of the case class in Scala?
- Which function in R is used to get the first few rows of a dataset?
Backend :
- Database : Which SQL clause is used to group rows that have the same values?
- Other : Who maintains the Swift programming language?
Mixed :
Weekly Cross-Domain Activities ( August 15 to August 21, 2025 )
API of the Day:
Build a currency converter using the ExchangeRate API
Real-World Project of the Week ( August 15 to August 21, 2025 )
Project of the Week:
Idea : Build a personal expense tracker
- Frontend : React + Tailwind CSS
- Backend : Node.js + Express + MongoDB
- Features : Add, edit, delete expenses; filter by date and category; show monthly summaries.
Previous Daily Coding Challenges & Projects : 04-04-2025 07-04-2025 08-04-2025 09-04-2025 10-04-2025 11-04-2025 14-04-2025 15-04-2025 16-04-2025 17-04-2025 18-04-2025 21-04-2025 22-04-2025 23-04-2025 24-04-2025 25-04-2025 28-04-2025 29-04-2025 30-04-2025 01-05-2025 02-05-2025 05-05-2025 06-05-2025 07-05-2025 08-05-2025 09-05-2025 12-05-2025 13-05-2025 14-05-2025 15-05-2025 16-05-2025 19-05-2025 20-05-2025 21-05-2025 22-05-2025 23-05-2025 26-05-2025 27-05-2025 29-05-2025 30-05-2025 02-06-2025 03-06-2025 04-06-2025 05-06-2025 06-06-2025 09-06-2025 10-06-2025 11-06-2025 12-06-2025 13-06-2025 16-06-2025 17-06-2025 18-06-2025 19-06-2025 20-06-2025 23-06-2025 24-06-2025 25-06-2025 26-06-2025 27-06-2025 30-06-2025 01-07-2025 02-07-2025 03-07-2025 04-07-2025 07-07-2025 08-07-2025 09-07-2025 10-07-2025 11-07-2025 14-07-2025 15-07-2025 16-07-2025 17-07-2025 18-07-2025 21-07-2025 22-07-2025 23-07-2025 24-07-2025 25-07-2025 28-07-2025 29-07-2025 05-08-2025 06-08-2025 07-08-2025 11-08-2025 12-08-2025 13-08-2025 14-08-2025