Daily Coding Challenges & Projects
Monday
Frontend Mini Project Challenge
JavaScript Logical Puzzle & Debugging
Project :
Tasks : Can you solve this without using .flat() or recursion?
// Task: Flatten a nested array
const input = [1, [2, [3, 4], 5], 6];
function flatten(arr) {
// Your code here
}
console.log(flatten(input)); // Expected: [1, 2, 3, 4, 5, 6]
Bonus : Debugging Puzzle:
let count = 0;
function increment() {
count++;
let count = 1;
return count;
}
console.log(increment());
- Allow users to input a future date and time.
- Display a live countdown showing days, hours, minutes, and seconds.
- Add custom labels and color themes.
- Provide options to pause/resume or reset the timer.
Fix & Explain What's Wrong!
Backend Challenge
C, C++, C#
C Task :
Write a program to reverse a linked list.
struct Node {
int data;
struct Node* next;
};
// Function prototype
struct Node* reverse(struct Node* head);
Bonus : Do it in-place with O(1) space.
Database Query Challenge
Problems on SQL - HR Database :
- Find the names and hire dates of employees who joined in the last 90 days.
- Find employees who haven't received a salary increase in the last 2 years.
Data Structures & Algorithms Challenge
- Easy:
- Problem : Check if a string has all unique characters.
- Hint : Use a hash set or fixed array.
- Medium:
- Problem : Given a rotated sorted array, search for a target value.
- Hint : Use modified binary search.
- Hard:
- Problem : Implement an LFU (Least Frequently Used) Cache.
- Hint : Use doubly linked list + hashmap with frequency buckets.
Bug of the Day
C Language
Buggy Code:
#include
int main() {
int a = 10, b = 0;
int result = a / b;
printf("Result: %d", result);
return 0;
}
Challenge : Find and fix the issue.
Hint : Division by zero! Prevent crash by adding condition.
📋 Daily Micro-Project
Frontend Focus :
Task :
Build a floating “Scroll to Top” button in plain JavaScript + CSS that appears only when the user scrolls 100px down.
Bonus : Add smooth scroll effect using window.scrollTo.
Trivia: 5 Fun Facts
- The first computer programmer was Ada Lovelace in the 1800s.
- The C programming language was developed in 1972 by Dennis Ritchie.
- JavaScript was created in just 10 days!
- The first version of Linux was released by Linus Torvalds in 1991.
- Git was created by Linus Torvalds in 2005 to manage the Linux kernel.
Tool & Resource of the Day
Tool : PlayCode
URL : PlayCode
An instant live JavaScript playground that supports modern frameworks, including React, Vue, and TypeScript.
Interview Question of the Day
Daily Interview Questions
- What is the difference between == and === in JavaScript?
- Explain closures in JavaScript.
- What is the difference between let, var, and const?
- How does the event loop work in JavaScript?
-
Backend ( C/C++/C# ) :
- What is a segmentation fault in C?
- What is the difference between stack and heap memory?
- How does garbage collection work in C#?
- What is a pointer? How is it different from a reference in C++?
- What is the difference between INNER JOIN and LEFT JOIN?
- What is a foreign key?
- What is normalization? Why is it important?
- What is the difference between compiler and interpreter?
- What is a race condition in multithreading?
Daily Quiz Challenge
- What is the result of typeof null?
- "null"
- "object"
- "undefined"
- "boolean"
- What does the this keyword refer to in a regular function?
- The current function
- The global object
- Undefined
- None of the above
- What’s the output of:
- 3
- 4
- 11
- 99
Frontend Quiz ( JavaScript ) :
let x = [1, 2, 3]; x[10] = 99; console.log(x.length);
- Which of the following is not a storage class in C?
- auto
- register
- static
- float
- Which keyword is used for inheritance in C++?
- inherits
- extend
- :
- super
- What is the default access modifier in a C++ class?
- private
- public
- protected
- internal
Backend Quiz ( C/C++/C# ) :
- SQL Question: Which keyword filters grouped data?
- WHERE
- GROUP BY
- HAVING
- ORDER BY
- OS Question: What does ps aux do in Linux?
- Shows available memory
- Lists all running processes
- Reboots system
- None of the above
Others :
Weekly Cross-Domain Activities ( May 30 to June 05, 2025 )
API of the Day:
Project: Build a Currency Converter App
API : ExchangeRate API
- Use JavaScript or TypeScript
- Input: Amount, base currency, target currency
- Output: Converted value + real-time exchange rate
Linux/DevOps Tip :
Topic : Monitoring
Commands :
- htop : interactive process viewer
- iostat : CPU & disk I/O stats
- vmstat : system performance
- netstat -tulpn : network ports and listeners
- du -sh * : check directory sizes
Real-World Project of the Week ( May 30 to June 05, 2025 )
Project of the Week:
- Frontend: React + Tailwind
- Backend: Node.js (TS) + Express + MongoDB
- Features: Job listings, filters, candidate profiles, admin dashboard
Build a Job Board Web App
Collaborative Project:
Open a GitHub repo for a community API library. Let developers contribute API wrappers for public APIs (e.g., weather, currency, news, etc.).
Case Study:
How does Twitter handle real-time updates? Explore websockets, long polling, and pub-sub architecture. Try implementing tweet-style live updates in your app.
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