w3resource

Daily Coding Challenges & Projects


Monday


Frontend Mini Project Challenge

Tech : JavaScript Logical Puzzle

Challenge :

Write a JavaScript function isAnagram(str1, str2) that checks whether two input strings are anagrams of each other (ignoring case, spaces, and punctuation).

Hint : Normalize strings and sort characters.

Try it Live : JSFiddle Starter or CodePen.

Backend Challenge

C, C++, C# Focus

Language : Choose any (C / C++ / C#)

Problem : Implement a function to detect whether a given singly linked list contains a cycle.

Hint : Use Floyd’s Tortoise and Hare algorithm

Database Query Challenge

Problems on SQL - HR Database :

  1. Employees with exactly 5 years in the company
  2. Departments with no managers assigned

HR database



Data Structures & Algorithms Challenge

  • Easy:
    • Problem :Check if a string is a palindrome.
    • Hint :Compare first and last characters recursively or with two pointers.
  • Medium:
    • Problem :Implement a stack using two queues.
    • Hint : Push normally, for pop transfer all but last to temp queue.
  • Hard:
    • Problem :Find the longest increasing subsequence in an array.
    • Hint :Use dynamic programming or patience sorting.

Bug of the Day

Language : C

Swift Bug

    Buggy Code:

    
    #include 
    int main() {
        int a = 5;
        if (a = 10) {
            printf("True\n");
        } else {
            printf("False\n");
        }
        return 0;
    }
    

Task : What’s the bug? Fix it so the condition checks correctly.

📋 Daily Micro-Project

Frontend Focus :

Task : Build a Numeric Counter using only HTML + JS

  • Display a number starting at 0
  • Two buttons: [+] to increment, [-] to decrement
  • Bonus: Prevent counter from going negative

Trivia: 5 Fun Facts

  1. The first ever computer programmer was Ada Lovelace.
  2. C was developed at Bell Labs by Dennis Ritchie.
  3. Stack Overflow launched in 2008 by Jeff Atwood and Joel Spolsky.
  4. The first web page was published in 1991.
  5. C# was developed by Microsoft in the early 2000s as part of .NET.

Tool & Resource of the Day

Tool : JSBin

A live JavaScript playground for testing JS, HTML, and CSS.

JSBin

Resource Roundup : Frontend Challenges

Interview Question of the Day

Daily Interview Questions

    Frontend ( JavaScript ) :
    1. What is the difference between == and ===?
    2. What is hoisting in JavaScript?
    3. What does bind() do?
    4. Explain event bubbling vs capturing.
    Backend ( C/C++/C# ) :
    1. What is a segmentation fault in C?
    2. How does memory allocation differ in C vs C++?
    3. What are pointers? How are they used in C?
    4. Explain garbage collection in C#.
    Database ( SQL ) :
    1. Difference between GROUP BY and ORDER BY.
    2. What is a foreign key?
    3. How does normalization reduce redundancy?
    Others :
    1. What is a compiler vs interpreter?
    2. What is a race condition?

Daily Quiz Challenge

    Frontend Quiz :

    1. What is the output of: console.log(typeof null)?
    2. Which event occurs when an input field loses focus?
    3. How do you prevent default link behavior?

    Backend Quiz :

    1. What is the output of printf("%d", 10/3); in C?
    2. Which access modifier allows access only within the same class (C#)?
    3. Which data structure is used by recursion (implicitly)?

    Databases & Other :

    1. Which SQL keyword is used to get unique records?
    2. What is the use of volatile keyword in C?

    Mixed Quiz :

    1. Write one key difference between var and let in JS.
    2. Identify the output: 5 + '5' in JS.
    3. What is the purpose of a foreign key in databases?

Weekly Cross-Domain Activities ( July 11 to July 17, 2025 )

API of the Day:

Task : Build a stock price tracker using Twelve Data API.

https://twelvedata.com.

Linux/DevOps Tip :

Use htop instead of top for a better interactive process viewer.

Real-World Project of the Week ( July 11 to July 17, 2025 )

Project of the Week:

Build an Expense Tracker using React + Express + MongoDB.

Collaborative Project:

Join the GitHub project “open-budget-app” and contribute a budget visualization module

Case Study:

Analyze how GitHub Actions works and create a basic CI pipeline using YAML.


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



Follow us on Facebook and Twitter for latest update.