Daily Coding Challenges & Projects
Wednesday
Frontend Mini Project Challenge
Vue.js Components
Challenge :
Build a Dynamic List Component in Vue.js
- Add new items
- Delete items
- Edit items inline
Create a Vue.js component where users can:
Requirements :
- Use v-model for binding input
- Use v-for and v-on for dynamic rendering and events
Try it on CodeSandbox (example playground suggestion)
Backend Challenge
Python & PHP
Python :
- Monitors a folder for any new files
- Automatically logs the filename and timestamp when a file is added
Write a Python script that :
Hint : Use the watchdog library for filesystem monitoring.
PHP :
- Accepts username & password via POST
- Validates against hardcoded credentials
- Returns a JSON response with status and message
Create a simple login API in PHP that :
Database Query Challenge
Problems on SQL - HR Database :
- Write a SQL query to list all departments that have more than 5 employees.
- Find employees whose salary is below the average salary of their department.
Data Structures & Algorithms Challenge
- Easy:
- Problem : Reverse a string without using built-in functions.
- Hint : Use a loop to build the string backward.
- Medium:
- Problem : Find the longest substring without repeating characters.
- Hint : Use sliding window technique.
- Hard:
- Problem : Implement an LRU (Least Recently Used) Cache using a hash map and a doubly linked list.
- Hint : Use OrderedDict in Python or create a custom structure.
Bug of the Day
Python & PHP
Python Bug :
Buggy Code:
def divide(a, b):
try:
return a / b
except:
return "Error!"
print(divide(10, 0))
Challenge : Identify the flaw in the exception handling. How can it be improved?
PHP Bug :
Buggy Code:
<?php
$number = "10";
if ($number === 10) {
echo "Equal";
} else {
echo "Not Equal";
}
?>
Challenge : Fix the comparison logic
📋 Daily Micro-Project
Database Focus :
Micro-Project :
Optimize a slow SQL query that selects employee details with salary, department, and manager name.
Add appropriate indexes and rewrite the query using JOINs efficiently
Trivia: 5 Fun Facts
- Who created PHP?
- What does SQL stand for?
- Which company developed Vue.js?
- Which programming language was originally called Oak?
- What is the mascot of Python?
Tool & Resource of the Day
Tool : Postman
Use Postman to test and debug APIs quickly with a user-friendly interface.
Resource Roundup :
- Postman Learning Center
- Postman API Testing Tutorial (YouTube)
- Free API Collections to Practice: public APIs
Interview Question of the Day
Daily Interview Questions
- What is a Vue.js directive? Provide an example.
- How does Vue’s reactivity system work?
- Explain the difference between v-if and v-show.
- How does watch differ from computed in Vue.js?
-
Backend ( Python, PHP ) :
- What are Python decorators? Give a use case.
- How does PHP handle sessions?
- What is the Global Interpreter Lock (GIL) in Python?
- What are magic methods in PHP? Name a few examples.
- What is a subquery and how is it used?
- Explain the difference between GROUP BY and ORDER BY.
- What is a foreign key constraint?
- What is a race condition in concurrent programming?
- Explain what CI/CD is and how it helps in DevOps.
Daily Quiz Challenge
- What is the output of: typeof null?
- "object"
- "null"
- "undefined"
- "boolean"
- In Vue, which directive is used to bind a property?
- v-model
- v-bind
- v-on
- v-for
- What does v-if do?
- Iterates over an array
- Conditionally renders an element
- Binds input data
- None of the above
Frontend Quiz ( Vue, JavaScript ) :
- Which keyword is used to handle exceptions in Python?
- try
- catch
- except
- handle
- What is the default superglobal used to retrieve POST data in PHP?
- $_GET
- $_POST
- $_DATA
- $_SERVER
- In Python, what is the output of bool([ ])?
- True
- False
- None
- Error
Backend Quiz ( Python, PHP ) :
- Which SQL clause is used to filter grouped rows?
- WHERE
- GROUP BY
- HAVING
- FILTER
Database :
- Which command lists all running Docker containers?
- docker start
- docker list
- docker ps
- docker show
Others :
Weekly Cross-Domain Activities ( May 23 to May 29, 2025 )
API of the Day:
Project: Build a news feed using the NewsAPI.
- Endpoint: https://newsapi.org/v2/top-headlines?country=us
- Display the title, image, and description of each article.
Linux/DevOps Tip :
10 Useful Commands for Monitoring Server Health:
- top, htop, iotop, vmstat, netstat, free -m, df -h, uptime, iostat, dstat
Real-World Project of the Week ( May 23 to May 29, 2025 )
Project of the Week:
Build a "Remote Job Board" with React (Frontend), Node.js (Backend), PostgreSQL (Database).
Collaborative Project:
Contribute to Public APIs GitHub Repo – Add new APIs with proper documentation.
Case Study:
- Analyze how Trello uses drag-and-drop + real-time sync.
- Rebuild a Trello-style kanban board with Vue.js or React + Firebase.
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