diff --git a/hash_table.cpp b/hash_table.cpp new file mode 100644 index 0000000..26587a2 --- /dev/null +++ b/hash_table.cpp @@ -0,0 +1,25 @@ +// Author: Proma Roy +// GITHUB: https://github.com/promaroy + +// hash table implementation for finding the frequency of each character in a string... + +#include +using namespace std; +int main() +{ + string s="hacktoberfest";//string + int hash[26]={0};// initializing hash table to store the frequency of each character.. + + for(int i=0;i