Why Hashtable doesn't allow null key/value while Hashmap does.In this post we will learn why Hashtable doesn't allow null key and null value while HashMap does.How Hashtable and HashMap compute bucket Index.
Before checking this post, I would recommend...
Home
»
Archives for August 2021
Why Hashtable doesn't allow null key/value while Hashmap does.
in
hashmap,
hashtable
- on 11:19:00
- No comments
Create Linked Lists of all the nodes at each depth in a binary tree.
in
Binary Tree,
Linked List
- on 13:45:00
- No comments
Create Linked Lists of all the nodes at each depth in a binary tree.Creating linked list of Nodes at same level in a Binary tree is same as printing nodes at each level of a Binary tree with only difference is to collect the Nodes in a list for each...
Find Inorder successor of a Node in BST
in
Binary Search Tree
- on 11:54:00
- No comments
Find Inorder successor of a Node in BST.Inorder traversal of a Binary Tree reads a Left most element first then a middle or root element and at last the right most element, so when we say successor of a Node, you have to return the next element of the...