Daily Coding Challenges & Projects
Monday
Frontend Mini Project Challenge
Theme : JavaScript Logical Puzzles + JavaScript Debugging
Small Challenge 1 — JavaScript Logical Puzzle :
Challenge
Write a function that returns the first non-repeating character in a string.
But here’s the twist → You cannot use any built-in string methods like indexOf or lastIndexOf.
Example :
Input: "aabbcddee" Output: "c"
Small Challenge 2 — Debugging Challenge
Buggy Code :
function sum(arr) {
return arr.reduce((a, b) => {
a + b;
});
}
console.log(sum([1, 2, 3]));
Task :
Find the bug and fix why this returns undefined instead of 6.
Interactive Playground Suggestions :
- JSFiddle
- CodePen
- StackBlitz
Backend Challenge
Focus : C, C++, C#
C Challenge :
Write a function to rotate an array by k positions without using extra array memory.
C++ Challenge :
Create a function that detects whether a linked list contains a cycle, using only O(1) extra memory (Floyd’s cycle algorithm).
C# Challenge :
Write a C# method that reads a 3GB log file line-by-line and prints only lines containing a specific keyword — without loading the whole file into memory.
Database Query Challenge
Problems on SQL - HR Database :
- Find employees whose salary is above the department average.
- List employees who have not changed departments in the last 5 years, ordered by hire date.
Data Structures & Algorithms Challenge
- Easy:
- Problem : Return true if an array is sorted in non-decreasing order.
- Hint :One pass → Compare each element with the previous one.
- Medium:
- Problem : Given an array, find the maximum sum of any contiguous subarray (Kadane’s Algorithm).
- Hint :Keep track of current sum + global max.
- Hard:
- Problem : Implement a Trie (prefix tree) with insert, search, and startsWith operations.
- Hint :Use a hashmap/dictionary for children at each node.
Bug of the Day
Focus : C, C++, C#
Buggy Code ( C ) :
int *p;
*p = 10;
printf("%d", *p);
Why does this crash? Fix it.
Buggy Code ( C++ ) :
string s = "hello";
s[5] = '!';
cout << s;
Identify buffer issue.
Buggy Code ( C# ) :
int x = null;
Console.WriteLine(x);
Find the semantic error.
📋 Daily Micro-Project
Focus : Frontend
Task :
Build a "Dynamic Character Counter" component
Requirements :
- Works like Twitter:
- Show remaining characters
- Turns red when limit exceeded
- Must support: JS / React / Vue
Bonus : Add a progress circle animation in CSS
Trivia: 5 Fun Facts
- The first version of C was created in 1972 at Bell Labs.
- The original Java mascot was named Duke.
- C++ was initially called “C with Classes”.
- React was created inside Facebook’s Ads team in 2013.
- The world’s first computer programmer was Ada Lovelace (1843).
Tool & Resource of the Day
Tool : Valgrind
A powerful tool for detecting memory leaks in C/C++.
Resource Roundup :
- Free guide: "Advanced Memory Management in C" ( PDFs available on many university sites ).
Interview Question of the Day
Daily Interview Questions
-
Frontend :
- Explain event bubbling in JavaScript.
- What is function hoisting?
- How do arrow functions differ from regular functions in JS?
- Explain the this keyword in JavaScript with an example.
-
Backend :
- How does a stack differ from a heap in C/C++?
- What is a segmentation fault?
- Explain CLR in C#.
- What is the purpose of garbage collection in C#?
- What is a foreign key?
- Explain normalization (1NF, 2NF, 3NF).
- What is a composite key?
- What is a kernel?
- What is multithreading?
Daily Quiz Challenge
- What is the output of console.log([] == 0)?
- Which JS method converts JSON string to object?
- What does "use strict" do?
Frontend :
- What does malloc() return when memory allocation fails?
- What is the difference between struct and class in C++?
- What is the base class of all C# types?
Backend :
- Which SQL clause is applied after GROUP BY?
- Which protocol does SSH run on — TCP or UDP?
- What is the time complexity of accessing an element in:
- JS array
- SQL indexed column
- C++ vector
Database :
Other :
Mixed Quiz :
Weekly Cross-Domain Activities ( November 22 to November 27, 2025 )
API of the Day:
Integrate the OpenWeatherMap API and build a small weather widget showing temperature, city, and weather icon.
Linux / DevOps Tip :
Use top, htop, and vmstat to monitor CPU, memory, and process usage live on Linux servers.
Real-World Project of the Week ( November 22 to November 27, 2025 )
Project of the Week:
Build a “Personal Finance Tracker” — Track expenses, visualize data with charts, and store in a backend DB.
Collaborative Project :
Contribute to an open-source Habit Tracker App on GitHub (Frontend: React, Backend: Node.js).
Case Study :
Study how Spotify’s recommendation system works — replicate a mini version using a dataset and cosine similarity.
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 15-08-2025 18-08-2025 19-08-2025 20-08-2025 21-08-2025 22-08-2025 25-08-2025 26-08-2025 27-08-2025 28-08-2025 29-08-2025 15-09-2025 16-09-2025 17-09-2025 19-09-2025 11-10-2025 22-11-2025
