From 59d7e917c63c70bdf381a1f102b8437862d08856 Mon Sep 17 00:00:00 2001 From: Shubham Raj <162688467+er-shubham-raj@users.noreply.github.com> Date: Sun, 26 Oct 2025 20:03:48 +0530 Subject: [PATCH] Add removeElement function to Solution class Implement the removeElement function to remove specified value from the array. --- Remove Element.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Remove Element.cpp diff --git a/Remove Element.cpp b/Remove Element.cpp new file mode 100644 index 0000000..a516c9f --- /dev/null +++ b/Remove Element.cpp @@ -0,0 +1,13 @@ +class Solution { +public: + int removeElement(vector& nums, int val) { + int j = 0; + for(int i = 0; i