Library Management

Medium Mini Projects & Algorithmic Challenges
Solve in Playground →

Problem Statement

Write a C++ program implementing a library book catalog system with borrowing, returning, and listing features.

Input Format

Number of commands N, followed by command strings ('ADD', 'BORROW', 'RETURN').

Output Format

Print book availability statuses.

Constraints

1 <= N <= 50

Sample Input

3
ADD CleanCode
BORROW CleanCode
RETURN CleanCode

Sample Output

Added
Borrowed
Returned

Explanation

Demonstrates object states, collection lookups, and state transitions.

Starter Code

#include <iostream>
#include <vector>
#include <string>

class Book {
public:
    std::string title;
    bool isAvailable;
    Book(std::string t) : title(t), isAvailable(true) {}
};

int main() {
    int n;
    if (std::cin >> n) {
        // Write your library management logic here
    }
    return 0;
}

Limits

  • Time Limit: 1s
  • Memory Limit: 256MB

Embedded C Programming

Updated: March 15, 2026
Intermediate

Embedded systems rely on efficient low-level programming to interact directly with hardware. In this course, you will learn how to write practical Embedded C programs used in real microcontroller-based systems. Rather than focusing only on theory, this course follows a practice-driven approach. Each lesson includes hands-on coding exercises that simulate real firmware development tasks used