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.
You mean, when I use min()/max() with string like what here we used, why it doesn't any error? As min()/max() functions basically used for finding minimum and maximum value and basically with numerical values. Then how these functions working on string values? Sorry but I'm very confused with behavior of this function.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Occupations
You are viewing a single comment's thread. Return to all comments →
You mean, when I use min()/max() with string like what here we used, why it doesn't any error? As min()/max() functions basically used for finding minimum and maximum value and basically with numerical values. Then how these functions working on string values? Sorry but I'm very confused with behavior of this function.