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.
it means if A is greater than B then it should print Yes...else No..
for example if A is ravi and B is apreddy then then the difference between 'r' of ravi and 'a'of apreddy is 18-1=17
it means positive value.so here it is positive result.
hence B i.e,apreddy is lexicographically first..
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Strings Introduction
You are viewing a single comment's thread. Return to all comments →
it means if A is greater than B then it should print Yes...else No.. for example if A is ravi and B is apreddy then then the difference between 'r' of ravi and 'a'of apreddy is 18-1=17 it means positive value.so here it is positive result. hence B i.e,apreddy is lexicographically first..