From 4294c097e2123d31fb6a619d62a40ff6878eb686 Mon Sep 17 00:00:00 2001 From: Shubham Raj <162688467+er-shubham-raj@users.noreply.github.com> Date: Sun, 26 Oct 2025 19:58:18 +0530 Subject: [PATCH] Remove Element --- CPP/data_structures/Remove Element.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 CPP/data_structures/Remove Element.cpp diff --git a/CPP/data_structures/Remove Element.cpp b/CPP/data_structures/Remove Element.cpp new file mode 100644 index 00000000..a516c9f1 --- /dev/null +++ b/CPP/data_structures/Remove Element.cpp @@ -0,0 +1,13 @@ +class Solution { +public: + int removeElement(vector& nums, int val) { + int j = 0; + for(int i = 0; i