Untitled

Anonymous
Plain Text
10/12/2024 5:17 PM
309 B
17
Indexable
Never
// Online C++ compiler to run C++ program online
#include <iostream>
using namespace std;
int main() 
{
string s(string s1, string s2) {
    for (char c : s1) {
        for (char d : s2) {
            if (c == d) {
                return "YES";
            }
        }
    }
    return "NO";
}
Editor is loading...
Leave a Comment