From baef37fd7ce78eb7df9ebe73d23341d65c37741b Mon Sep 17 00:00:00 2001 From: chayan das Date: Sun, 27 Apr 2025 23:51:08 +0530 Subject: [PATCH] Create 3392. Count Subarrays of Length Three With a Condition --- .... Count Subarrays of Length Three With a Condition | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 3392. Count Subarrays of Length Three With a Condition diff --git a/3392. Count Subarrays of Length Three With a Condition b/3392. Count Subarrays of Length Three With a Condition new file mode 100644 index 0000000..6d24a10 --- /dev/null +++ b/3392. Count Subarrays of Length Three With a Condition @@ -0,0 +1,11 @@ +class Solution { +public: + int countSubarrays(vector& nums) { + int n = nums.size(); + int count = 0; + for(int i=0;i