Being more specific we can take char
Being more specific we can take char
can you please elaborate your question a bit more? I didn’t get your question clearly.
Thanks
instead of taking string , cant we take char in HashMap.
HashMap<Character, Integer> map = new HashMap<>();
yes Pallavi, you can take character as long as there are at max 256 nodes in the graph(i.e. unless all the characters are consumed). so for the general purpose, your node id should be flexible i.e string is preferable.
Thanks.
please resolve it and rate it if satisfied.
Thanks
…
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.