We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
But my simple question is B-A will be equal to 1
that will be stored in your character array
and the next array will store D-A that will be equal to 2 ;
but when am trying to print it always print 0 & 1.
The interesting fact is count of 0 & 1 is always equal but are in different order .
If possible for you to explain how this comparison works?
I know i sound like a big idiot ..
But still if possible plz explain
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Anagrams
You are viewing a single comment's thread. Return to all comments →
But my simple question is B-A will be equal to 1 that will be stored in your character array and the next array will store D-A that will be equal to 2 ;
but when am trying to print it always print 0 & 1.
The interesting fact is count of 0 & 1 is always equal but are in different order . If possible for you to explain how this comparison works?
I know i sound like a big idiot .. But still if possible plz explain