Daily Coding Challenges & Projects
Wednesday
Frontend Mini Project Challenge
Theme : Vue.js Components
Challenge :
Build a Vue.js component called <StarRating> that allows users to rate an item from 1 to 5 stars. The stars should be clickable, and the selected rating should be highlighted.
Bonus : Emit the selected rating to the parent component.
Playground : Try it on CodeSandbox (link placeholder)
Backend Challenge
Language Focus : Python & PHP
Python Challenge
Task : Write a Python function to compress a string using run-length encoding.
Example :
"aaabbc" → "a3b2c1"
PHP Challenge
Task : Create a simple login system using PHP that checks a hardcoded username/password.
Bonus : Use sessions to keep the user logged in.
Database Query Challenge
Problems on SQL - HR Database :
- Find all employees who joined in the last 6 months.
- Find employees who haven’t received a salary increase in the last 2 years.
Data Structures & Algorithms Challenge
- Easy:
- Problem :Find the second largest number in an array.
- Hint :Track the top two values while iterating.
- Medium:
- Problem : Implement a LRU (Least Recently Used) cache.
- Hint :Use a HashMap with a Doubly Linked List.
- Hard:
- Problem :Given an array of integers, find the length of the longest increasing subsequence.
- Hint :Use dynamic programming with binary search.
Bug of the Day
Language Focus : Python
Python Bug
Buggy Code:
def multiply(a, b):
return a * b
print(multiply("3", 4)) # Expected 12
Challenge : What’s the output? Why is it incorrect? Fix it to get the actual multiplication result.
📋 Daily Micro-Project
Type : Database
Task :
Optimize a SQL query that fetches employee details with department and salary using proper indexing and JOIN.
Before :
SELECT * FROM employees, departments WHERE employees.dept_id = departments.id;
Improved :
SELECT e.name, d.department_name
FROM employees e
JOIN departments d ON e.dept_id = d.id;
-- Add INDEX on dept_id for performance
Trivia: 5 Fun Facts
- Who created the Python programming language?
- What year was Vue.js released?
- What is the mascot of PHP?
- Which Python keyword is used for defining anonymous functions?
- Who invented the relational database model?
Tool & Resource of the Day
Tool : Postman
Use : Test your APIs with ease. Allows automated testing, environment variables, and sharing with teams.
Bonus Resource : Postman Learning Center
Interview Question of the Day
Daily Interview Questions
-
Frontend :
- What are Vue.js watchers, and when should you use them?
- Compare v-if vs v-show in Vue.js.
- How does Vue’s reactivity system work?
- What’s the role of key in v-for?
-
Backend :
- What is the GIL (Global Interpreter Lock) in Python?
- How does PHP handle sessions?
- What is a virtual environment in Python?
- How do you manage dependency injection in PHP?
- What is a foreign key in SQL?
- How does normalization reduce redundancy?
- What is ACID in databases?
- What is cron in Linux systems?
- Define the concept of middleware in web development.
Daily Quiz Challenge
- What directive is used for two-way data binding in Vue.js?
- v-bind
- v-model
- v-for
- v-if
- Which Vue lifecycle hook is called after the component is mounted?
- created
- beforeMount
- mounted
- updated
- What is the purpose of computed properties in Vue.js?
- Perform API calls
- Bind to HTML
- Cache expensive calculations
- Add animations
Frontend ( Vue.js Focus ) :
- What is the output of print("2" * 3) in Python?
- 6
- 222
- Error
- 2 * 3
- In PHP, which of the following is used to start a session?
- session_begin()
- start_session()
- session_start()
- init_session()
- Which Python keyword is used for exception handling?
- try...except
- if...else
- loop
- raise...catch
Backend ( Python/PHP ) :
- Which SQL clause is used to group rows that have the same values?
- ORDER BY
- WHERE
- GROUP BY
- HAVING
- What does REST stand for in web APIs?
- Remote Execution Secure Transfer
- Representational State Transfer
- Run External Script Transfer
- Recursive Secure Transaction
Others :
Weekly Cross-Domain Activities ( August 01 to August 07, 2025 )
API of the Day:
Build a crypto tracker using the CoinGecko API.
Display current prices and 24h change of selected coins.
Linux/DevOps Tip :
Top 10 htop features for server monitoring (process tree, CPU graph, filter by user, etc.)
Real-World Project of the Week ( August 01 to August 07, 2025 )
Project of the Week:
Build a Task Manager App with React + Node.js + MongoDB (MERN Stack)
Collaborative Project:
Create an Open Source GitHub repo for “Interview Prep Hub” – collect user-submitted questions and answers.
Case Study:
Explore how Notion manages blocks and rich content – replicate a basic block-based note editor with contenteditable elements.
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