From 29322c2e616855f9e96096f73119bffd97630b8b Mon Sep 17 00:00:00 2001 From: ganguu Date: Wed, 22 Oct 2025 22:18:58 +0530 Subject: [PATCH] feat: add C++ solution for Final Value of Variable After Performing Operations --- final_value_of_variable.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 final_value_of_variable.cpp diff --git a/final_value_of_variable.cpp b/final_value_of_variable.cpp new file mode 100644 index 0000000..37c7d1a --- /dev/null +++ b/final_value_of_variable.cpp @@ -0,0 +1,13 @@ +class Solution { +public: + int finalValueAfterOperations(vector& operations) { + int x = 0; + for(int i = 0; i