What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-12 01:15:13
word matching from a subsequence
#include <bits/stdc++.h> using namespace std; class Solution { public: int numMatchingSubseq(string S, vector<string>& words) { int n = words.size(); map <char, vector ... Add solution -
C++ 2022-03-10 00:05:02
c++ two array find same values
#include <iostream> #include <cstdlib> #include <conio.h> using namespace std; int main() { int p[4] ,p1[4], num = 0 , p2[] = {}; cout<<"Enter 4 numbers of the first array "; for(int a=0;a<4;a++){ cin>>p[a]; ... Add solution -
Other 2022-03-07 01:40:02
oop encapsulation example
#include<iostream> using namespace std; class ExampleEncap{ private: /* Since we have marked these data members private, * any entity outside this class cannot access these * data members directly, they have to use getter and * setter... Add solution -
C++ 2022-03-03 05:00:01
how to find hcf in c++
// C++ program to find GCD of two numbers #include <iostream> using namespace std; // Recursive function to return gcd of a and b int gcd(int a, int b) { if (b == 0) return a; return gcd(b, a % b); } // Driver program to test above ... Add solution