w3resource

Daily Coding Challenges & Projects


Wednesday


Frontend Mini Project Challenge

Focus : Vue.js Components

Challenge :

Build a Vue.js Todo List Component with the following features:

  • Add and remove tasks.
  • Use v-model for two-way binding.
  • Use v-for to render the task list dynamically.

Bonus :Add a filter to show all, completed, or pending tasks.

Playground :Vue SFC Playground

Backend Challenge

Focus : Python, PHP

Python Challenge :

  • Write a script to read a log file and output the top 5 most common error messages.

PHP Challenge :

  • Build a simple contact form handler that stores submitted data in a MySQL database.

Database Query Challenge

Problems on SQL - HR Database :

  1. Write a query to list the employees who earn more than their manager.
  2. Write a query to display the department(s) with the maximum number of employees.

HR database



Data Structures & Algorithms Challenge

  • Easy:
    • Problem : Implement a stack using two queues.
    • Hint :Use one queue for storage, the other for reordering.
  • Medium:
    • Problem : Find the longest substring without repeating characters.
    • Hint :Use sliding window + hash set.
  • Hard:
    • Problem : Implement Kruskal’s algorithm for Minimum Spanning Tree (MST).
    • Hint :Use Disjoint Set Union (DSU).

Bug of the Day

Focus : Python, PHP

    Buggy Code ( Python ):

    
    nums = [1, 2, 3, 4]
    for i in range(len(nums)):
        print(nums[i+1])  # Bug here
    

Find & Fix : Why does this throw an IndexError?

📋 Daily Micro-Project

Focus : Database

Task :

Create a SQL query analyzer tool in Python that:

  • Takes a SQL query as input.
  • Detects if SELECT * is used (flag it as bad practice).
  • Suggests using specific column names.

Trivia: 5 Fun Facts

  1. The first version of PHP stood for Personal Home Page.
  2. Python was named after the Monty Python comedy group, not the snake.
  3. The first relational database model was proposed by E.F. Codd in 1970.
  4. Vue.js was created by Evan You, who previously worked at Google.
  5. PHP originally started as a set of CGI scripts.

Tool & Resource of the Day

Tool : BeeKeeper Studio

  • Cross-platform database GUI for SQL databases.
  • Great alternative to DBeaver for lightweight DB management

Resource Roundup :

  • Vue Mastery Free Courses
  • Python Crash Course (Real Python)
  • SQLZoo – Interactive SQL practice

Interview Question of the Day

Daily Interview Questions

    Frontend :
    1. What is the difference between v-if, v-show, and v-for in Vue.js?
    2. How do Vue.js lifecycle hooks work?
    3. Explain the difference between props and data in Vue.js.
    4. What is Vuex, and when should you use it?
    Backend :
    1. What are Python decorators, and how are they used?
    2. Explain the difference between GET and POST requests in PHP.
    3. How does PHP handle sessions internally?
    4. What is the Global Interpreter Lock (GIL) in Python?
    Database :
    1. What is a composite key?
    2. Difference between DELETE, TRUNCATE, and DROP.
    3. Explain ACID properties with an example.
    Others :
    1. What is a hypervisor in virtualization?
    2. Explain the concept of event-driven programming

Daily Quiz Challenge

    Frontend :

    1. What is the default value of display property for?
    2. In Vue.js, which directive enables two-way binding?
    3. Which CSS property controls text size?

    Backend :

    1. Which symbol is used for comments in Python?
    2. In PHP, which function is used to start a session?
    3. Which collection in Python does not allow duplicate elements?

    Mixed :

    1. Database : Which SQL keyword is used to remove duplicate rows in a result set?
    2. Other :Who invented the C programming language?

Weekly Cross-Domain Activities ( August 22 to August 28, 2025 )

API of the Day:

Build a Weather App using OpenWeatherMap API.

Linux Tip :Use htop to monitor CPU, memory, and processes in real-time.

Real-World Project of the Week ( August 22 to August 28, 2025 )

Project of the Week:

Build a Personal Portfolio Website with HTML, CSS, and JavaScript.

Collaborative Project :

Create an Open Source Expense Tracker in React + Node.js.

Case Study :

Analyze Twitter’s infinite scrolling → implement it using React + Intersection Observer API.


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  06-08-2025  07-08-2025  11-08-2025  12-08-2025  13-08-2025  14-08-2025  15-08-2025  18-08-2025  19-08-2025  20-08-2025  21-08-2025  22-08-2025  25-08-2025  26-08-2025



Follow us on Facebook and Twitter for latest update.