posted an update

Here's a simple coding question i solved in c++ which give count of occurences of letters in a word:

include

include

using namespace std;

int main() { string word; cout << "Enter a word: "; cin >> word; unordered_map count; for (char c : word) count[c]++; for (auto& pair : count) cout << pair.first << ": " << pair.second << endl; return 0; }

Log in or sign up for Devpost to join the conversation.