Posts

Showing posts from September, 2021

Google kick start solved Shuffled Anagrams

Shuffled Anagrams   #include <bits/stdc++.h> using namespace std; #define ll long long int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); ll t, i, j, k, l, ma, m; ll c[26], d[26]; string a, b; cin>>t; for(j=1; j<=t; j++) { cin>>a; l=a.size(); vector<pair<ll, char>> c1; for(i=0; i<26; i++) { c[i]=0; d[i]=0; } for(i=0; i<l; i++) { if(a[i]>=97) c[a[i]-97]++; else d[a[i]-65]++; } ma=0; for(i=0; i<26; i++) { ma=max(ma, c[i]); ma=max(ma, d[i]); } for(i=0; i<26; i++) { c1.push_back({c[i], char(i+97)}); c1.push_back({d[i], char(i+65)}); } ...

some basic commands on Metasploit

  Some basics commands of Metasploit are search, back, info, help, and exit. Use of back and exit commands. ... Help command. ... Info command. ... Search Command. ... Show options. ... Show payloads. ... Show targets. ... Show advanced.