Can Someone please post a code which has'nt used map data structure just had a logic .
Thanks in Advance!!1
Read more… (20 words)
Can Someone please post a code which has'nt used map data structure just had a logic .
Thanks in Advance!!1
Here is the Solutions in C++. For any queries please ping me-
#include<bits/stdc++.h>using namespace std;int main(){map<long long int , int> mp;long int n1,n2,n3;cin>>n1>>n2>>n3;long long int k=n1+n2+n3;while(k--){long long int x;cin>>x;mp[x]++;}std::map<long long int ,int>::iterator it;long long int size=0;for(it=mp.begin();it!=mp.end();it++){if(it->second>=2){it->second=-2;
Start with Course on Machine Learning on Course era by Andrew Ng .It's simple and detailed at the same time. It will give you gist of Machine Learning. Also Focus on statistics they will help you in future.
Happy Learning!!