Daily Coding Challenges & Projects
Thursday
Frontend Mini Project Challenge
React
Task :
Build a "Tab Switcher" using React Hooks
Requirements:
- Create 3 tabs ("Home", "About", "Contact").
- Use useState to manage active tab.
- Use conditional rendering to display tab content.
Bonus : Add basic animations using Framer Motion or CSSTransition
Backend Challenge
Node.js & Go
Node.js Challenge :
Task : Create a REST API Endpoint
- Build a GET /users/:id route using Express.
- Fetch user data from an in-memory array.
- Return 404 if not found.
Go Challenge :
Task: Build a Basic HTTP Server
- Create a simple HTTP server in Go.
- Handle /greet route with a ?name=YourName query.
- Respond: "Hello, YourName!"
Database Query Challenge
Problems on SQL - HR Database :
- List employees who joined before their department manager did.
- Find departments with the highest average salary and list their employees.
Data Structures & Algorithms Challenge
- Easy:
- Problem : Check if a string is a palindrome (case-insensitive).
- Hint : Use two pointers or reverse the string.
- Medium:
- Problem : Merge two sorted linked lists into one sorted list.
- Hint : Use a dummy node and iteratively compare nodes.
- Hard:
- Problem : Find the K-th largest element in an unsorted array.
- Hint : Use a Min Heap or QuickSelect.
Bug of the Day
Node.js & Go
JavaScript (Node.js) Bug :
Buggy Code:
const fs = require('fs');
fs.readFile('file.txt', 'utf-8', (err, data) => {
if (!err) throw err;
console.log(data);
});
Challenge : Find and fix the issue in error handling.
GO Bug :
Buggy Code:
package main
import "fmt"
func main() {
var nums = [3]int{1, 2, 3}
fmt.Println(nums[3])
}
Challenge : Identify the runtime panic and correct it
📋 Daily Micro-Project
Frontend React :
Task :
Create a Countdown Timer Component
- User enters a number (in seconds), presses start.
- Timer counts down every second.
- Shows “Time’s up!” when done.
Use useState and useEffect.
Trivia: 5 Fun Facts
- React was created by Jordan Walke at Facebook.
- Node.js was introduced in 2009 by Ryan Dahl.
- Go (Golang) was designed by Google engineers in 2007.
- JavaScript was created in just 10 days by Brendan Eich.
- The first version of HTML was published in 1993.
Tool & Resource of the Day
Tool : ESLint
A pluggable linter for identifying and fixing JavaScript code problems.
Resource Roundup :
- React Docs
- Roadmap.sh – React Developer Guide
Free React Resources:
Interview Question of the Day
Daily Interview Questions
- What are the rules of hooks in React?
- How does useEffect differ from componentDidMount?
- What happens if you call a hook conditionally?
- What is the purpose of useMemo and when would you use it?
-
Backend ( Node.js & Go ) :
- What is event-driven architecture in Node.js?
- How does the Go scheduler handle goroutines?
- Explain the difference between blocking and non-blocking code.
- How do you handle uncaught exceptions in Node.js?
- What is normalization? Name its types.
- What is the use of HAVING clause in SQL?
- What are surrogate keys in relational databases?
- What’s the difference between virtual memory and cache memory?
- Explain the role of a load balancer in system architecture.
Daily Quiz Challenge
- Which hook is used to manage state in a functional component?
- useHook
- useRef
- useState
- useEffect
- What is the output of this snippet?
- 1
- 2
- 0
- Depends on rendering
Frontend Quiz ( React ) :
const [count, setCount] = useState(0); setCount(count + 1); setCount(count + 1);
- To track state changes
- To help React identify list items
- For security
- None of the above
- In Node.js, what does process.nextTick() do?
- What is the output of: console.log(1); setTimeout(()=>console.log(2), 0); console.log(3);?
- In Go, what keyword is used to start a goroutine?
- routine
- go
- start
- run
Backend Quiz ( Node.js / Go ) :
- Which SQL clause is used to group rows?
- GROUP BY
- HAVING
- ORDER BY
- WHERE
Database :
- Which of the following is true about closures in JavaScript?
- They allow access to outer function’s variables
- They execute asynchronously
- They are unique to Node.js
- None of the above
Mixed Quiz :
Weekly Cross-Domain Activities ( June 06 to June 12, 2025 )
API of the Day:
OpenWeatherMap API :
Challenge : Create a TypeScript + React component that fetches and displays current temperature and condition for a searched city.
Linux/DevOps Tip :
5 Handy Disk & Memory Commands
- df -h: disk usage
- du -sh *: directory sizes
- free -m: memory usage
- top: process monitoring
- vmstat: system performance
Real-World Project of the Week ( June 06 to June 12, 2025 )
Project of the Week:
Build a Job Listing Board with search, filter by tech stack, and posting forms. Stack: React + Node.js + PostgreSQL
Collaborative Project:
Contribute to dev.to open-source. It’s the engine behind dev.to—built with Ruby on Rails.
Case Study:
Notion Clone UI – Study how Notion handles blocks and dynamic layouts using React.
Instagram Stories Feature
- Built using horizontally swipable carousels
- Preloading, caching, and state transitions
Challenge: Recreate it using React + CSS Transitions.
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