Category: ব্লগ । Blog
ব্লগ । Blog
Jul 20
Build a Number Hash in C
Create a Hash Table to store numbers. Also, search numbers in that Hash Table. Write Code in C define _CRT_SECURE_NO_WARNINGS include include include define MaxNumbers 50 // to divide with define N 100 define Empty 0 define STORAGESIZE 100 int hashTable[STORAGESIZE + 1]; //initialize hash tablevoid initializeHashTable() { } //find a number and return found/not-foundint …
Jul 20
Build a Word Hash
Store Words in a Hash Table. Also, search a word in that Hash Table define _CRT_SECURE_NO_WARNINGS include include include //#define MaxNumbers 100 define MaxWordLen 50 define Empty 0 define STORAGESIZE 15 // to divide with define N 15 char hashTable[STORAGESIZE][MaxWordLen]; //initialize hash tablevoid initializeHashTable() {for (int counter = 0; counter < STORAGESIZE; counter++) {strcpy(hashTable[counter], “”);}} …
Jul 19
Input: Tree Traversal Data Output: Build the Tree
•From In-order Output to Build the Tree •Take In-order Traversal Output Data •And Build the Tree •Take the middle (N) or so as the root •Keep going/taking alternate left (nodeLabels) (K D) from there •Make those also roots/parents (left sub tree) •The last may be at the last left in this flow •Then from the …

