What do you want to save?
Add Code snippet
New code examples
-
Java 2022-03-12 21:15:23
java indexof all occurrences
String stringName = "Hello"; String characterToFind = "l"; //This example will find all the Ls in this string and will print the index of //it as soon as it is detected for(int i = 0; i < stringName.length(); i++){ if(stringName.... Add solution -
C++ 2022-03-12 02:30:03
prims c++
#include <iostream> #include <vector> #include <queue> #include <functional> #include <utility> using namespace std; const int MAX = 1e4 + 5; typedef pair<long long, int> PII; bool marked[MAX]; vector <PII> adj[M... Add solution -
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