From db798945bc899ce4abefbbb84cd31103ce76c5a4 Mon Sep 17 00:00:00 2001 From: Yash Garg <72246420+yashgarg7302@users.noreply.github.com> Date: Mon, 13 Jan 2025 17:53:43 +0530 Subject: [PATCH] Create _2116.cpp Solution for the Leetcode problem 2116. Check if a Parentheses String Can Be Valid --- cpp/_2116.cpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 cpp/_2116.cpp diff --git a/cpp/_2116.cpp b/cpp/_2116.cpp new file mode 100644 index 0000000000..53605f06c5 --- /dev/null +++ b/cpp/_2116.cpp @@ -0,0 +1,32 @@ +class Solution { +public: + bool canBeValid(string s, string locked) { + int n = s.size(); + for(int i = 0;i open,star; + for(int i = 0;i pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy