Custom Vector Class Simulation

Medium Mini Projects & Algorithmic Challenges
Solve in Playground →

Problem Statement

Write a C++ program implementing a dynamic integer array wrapper supporting push_back and element access.

Input Format

Number of operations N followed by commands ('PUSH', 'GET').

Output Format

Print elements or retrieval values.

Constraints

1 <= N <= 50

Sample Input

3
PUSH 10
PUSH 20
GET 1

Sample Output

20

Explanation

Simulates custom dynamic array resizing and indexing behavior.

Starter Code

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

int main() {
    int n;
    if (std::cin >> n) {
        // Write your custom vector 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