Daily Coding Challenges & Projects
Thursday
Frontend Mini Project Challenge
React Hooks & State Management
Challenge :
Build a To-Do List with Persistent State
- Use useState and useEffect to manage and persist tasks in localStorage.
- Allow users to add, delete, and toggle completion status of tasks.
- Bonus: Add a filter for “All”, “Completed”, and “Pending” tasks.
Try it live : CodeSandbox
Backend Challenge
Languages: Node.js (JavaScript), Go
Node.js Challenge:
Problem : Create an Express.js API with a GET /books endpoint.
- Load book data from a JSON file.
- Support query parameters for author and genre filtering.
Go Challenge:
Problem : Write a Go program to implement a basic key-value in-memory store.
- Support commands: SET key value, GET key, DELETE key.
Database Query Challenge
Problems on SQL - HR Database :
- Retrieve the department name and average salary of departments where the average salary is more than 10,000.
- Find employees who report to a manager that is also an employee in the same department. (Hint: Use self-join)
Data Structures & Algorithms Challenge
- Easy:
- Problem : Check if a string is a palindrome using two pointers.
- Hint : Use start and end index comparison.
- Medium:
- Problem : Implement a Least Recently Used (LRU) Cache.
- Hint : Use Map and doubly-linked list or JavaScript Map ordering feature.
- Hard:
- Problem : Word Ladder - Given a start word, end word, and a dictionary, transform start to end with minimal word transformations (1 letter change at a time).
- Hint : Use BFS.
Bug of the Day
Language Focus : Node.js / JavaScript
Python Bug:
Buggy Code:
const user = {
name: "Alice",
greet: () => {
console.log(`Hello, my name is ${this.name}`);
}
};
user.greet();
Find & Fix :: Why is undefined printed? Fix the bug so it prints: Hello, my name is Alice.
📋 Daily Micro-Project
Frontend Focus : React
Task :
Create a Light/Dark Theme Switcher
- Use useState to toggle themes
- Store preference in localStorage
- Style using CSS variables or Tailwind classes
Trivia: 5 Fun Facts
- React was first released by Facebook in 2013.
- Go (Golang) was created at Google in 2007.
- The first computer bug was an actual moth in 1947.
- JavaScript was created in 10 days by Brendan Eich.
- console.log() is the most-used JS statement ever.
Tool & Resource of the Day
Tool : React Developer Tools (Chrome Extension)
- Inspect component trees, state, and props easily.
Resource Roundup:
- useHooks.dev – Collection of custom React hooks
- Node.js Design Patterns eBook (Free)
- Go Tour – Interactive intro to Go
Interview Question of the Day
Daily Interview Questions
- What are the rules of hooks in React?
- What is the difference between useEffect and useLayoutEffect?
- How does useReducer work compared to useState?
- What is reconciliation in React and how does it relate to virtual DOM?
-
Backend :
- What are middleware functions in Express.js?
- How does Node.js handle concurrency with a single thread?
- What is a goroutine in Go and how is it different from a thread?
- Explain the role of context (context.Context) in Go APIs.
- What is a correlated subquery in SQL?
- How does the WITH clause (Common Table Expression) work in SQL?
- What is normalization and why is it important?
- What is a race condition in multithreading?
- Explain the CAP theorem in distributed systems.
Daily Quiz Challenge
- What does useEffect(() => {}, []) mean?
- Which hook is used to share logic between components?
- What is the correct way to update state based on previous state?
Frontend Quiz ( React/JS ) :
- What is the default port used by Express.js?
- What does the defer keyword do in Go?
- What is the event loop in Node.js?
Backend Quiz ( Node.js, Go ) :
- Which SQL clause is used to limit rows returned?
Database :
- What does CI/CD stand for?
Others :
- Which one runs faster: Array iteration in Go or JS?
- What does React’s key prop help with?
Mixed Quiz :
Weekly Cross-Domain Activities ( Thursday Preview )
API of the Day:
OpenLibrary API – Build a book search UI using their public book search API.
Linux/DevOps Tip :
Monitor CPU usage using:
top htop mpstat -P ALL 1
Real-World Project of the Week
Project of the Week:
- CRUD expenses
- Track categories & monthly stats
Build a Budget Tracker using React + localStorage
Collaborative Project:
Start a GitHub project: "Open-Source DSA Visualizer" using React + D3.js
Case Study:
Notion Clone UI – Study how Notion handles blocks and dynamic layouts using React.
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