Daily Coding Challenges & Projects
Monday
Frontend Mini Project Challenge
JavaScript Logic Puzzle:
Challenge:
- Write a function deepSum(arr) that takes a deeply nested array of numbers and returns the total sum without using recursion or flat(Infinity).
- // Example Input: [1, [2, [3, [4]], 5]]
- // Output: 15
Debug It:
const nums = [10, 20, 30];
const doubled = nums.map(n => {
n * 2;
});
console.log(doubled); // What's wrong here?
Try it online: Use JSFiddle/CodePen/Replit for users to test.
Backend Challenge
C, C++, C#
C Challenge:
Problem:
Write a C program that reverses a singly linked list and prints the result.
C++ Challenge:
Problem:
Create a simple command-line password manager using std::map and file storage (basic file I/O).
Swift (Vapor)
Problem:
Create a simple POST API to accept contact form submissions and store in memory.
C# Challenge:
Problem:
Build a minimal console app to simulate a simple bank system with deposit/withdraw features and balance checking.
Database Query Challenge
Problems on SQL - HR Database :
- Write a SQL query to find employees who are earning more than the average salary of their department.
- Write a SQL query to find departments where no employee has been hired in the last 12 months.
Data Structures & Algorithms Challenge
- Easy:
- Problem: Given an array, check if it contains duplicates.
- Hint: Use a Set.
- Medium:
- Problem: Rotate an array of n elements to the right by k steps.
- Hint: Use reverse-based approach.
- Hard:
- Problem: Implement a min stack (support push, pop, top, and retrieving the minimum element in constant time).
- Hint: Use two stacks.
Bug of the Day
C
Bug ( C ):
Code:
#include
int main() {
int x = 10;
if(x = 5)
printf("X is five\n");
return 0;
}
Challenge: Find and fix the bug.
📋 Daily Micro-Project
Frontend
Challenge: Build a responsive "Progress Bar" that visually fills based on a number input (0–100%).
- Use only HTML, CSS, and JavaScript
- Bonus: Add a color gradient animation as the bar fills.
Trivia: 5 Fun Facts
- Linus Torvalds created Git after a dispute with BitKeeper in 2005.
- The first computer bug was a real moth.
- JavaScript was created in just 10 days by Brendan Eich.
- Grace Hopper popularized the term “debugging.”
- The term "stack overflow" comes from an actual memory error.
Tool of the Day
Tool : Ray.so
- JavaScript30 by Wes Bos
- C++ Fundamentals on freeCodeCamp
- C# Tutorial Series on Microsoft Learn
Resource Roundup:
Interview Question of the Day
Daily Interview Questions
- What is the difference between null and undefined?
- What is event bubbling and how do you stop it?
- What is the difference between == and ===?
- How does lexical scoping work in JavaScript?
- What is a segmentation fault and how can you avoid it in C?
- Explain how memory management works in C++.
- What is the difference between a pointer and a reference?
- What are async/await keywords used for in C#?
- What is the difference between INNER JOIN and OUTER JOIN?
- How does a composite index work?
- What is a foreign key constraint?
- What is a system call in operating systems?
- What is the purpose of a Makefile in C/C++ projects?
Daily Quiz Challenge
- What does typeof null return?
- null
- "null"
- "object"
- "undefined"
- What is the output?
- [1,2,3,4]
- "1,23,4"
- "1,23,4"
- "1,23,4"
- Which event is fired when an input loses focus?
- change
- blur
- focus
- input
Frontend (JavaScript) :
#include
console.log([1, 2] + [3, 4]);
- Which data structure uses LIFO?
- Queue
- Stack
- Linked List
- Heap
- What does malloc return on failure?
- 0
- -1
- NULL
- Segfault
- What keyword is used to inherit a class in C++?
- class
- this
- public
- base
Backend (C/C++/C#) :
- Which clause filters after GROUP BY?
- WHERE
- SELECT
- HAVING
- ORDER BY
Database :
- Which of these is NOT a containerization tool?
- Docker
- Kubernetes
- VirtualBox
- Podman
Others :
Weekly Cross-Domain Activities ( April 25 to May 01, 2025 )
API of the Day:
Challenge:
Use the Bored API to create a simple app that suggests fun activities when you're bored.
Linux/DevOps Tip:
Useful Commands for File & Directory Management and Troubleshooting
- stat filename – View detailed metadata about a file (last access, inode, etc.)
- ls -lhS – List files by size in human-readable format
- tree -L 2 – Display a directory structure up to 2 levels deep
- find /path -type f -size +100M – Find files larger than 100MB
- ncdu – A disk usage analyzer with a simple interactive UI (install required)
- lsof +D /path/to/dir – List open files in a directory
- inotifywait -m /some/dir – Watch for real-time file changes in a directory (from inotify-tools)
- file filename – Determine file type and encoding
- tail -F /var/log/syslog – Live-follow system logs with file rotation support
- watch -n 1 'df -h / && free -h' – Watch disk and memory stats refresh every second
Here are 10 powerful and often underused commands for managing files and debugging issues in Linux systems:
Real-World Project of the Week ( April 25 to May 01, 2025 )
Project of the Week:
- Tech Stack Options:
- TypeScript + Express + PostgreSQL + React
Build a Personal Expense Tracker App
Collaborative Project:
- Contribute to EddieHub Open Source Projects
- Join issues tagged good first issue on GitHub!
Case Study:
- Uses React + TypeScript frontend
- Backend with C++/Rust hybrid for performance
- Offline-first architecture
How is Notion Built?
Challenge: Try replicating a basic note-taking component!
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