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.
why not including it? abs(*a-*b) is much more agile. there is no rules against the use of headers (be them or ) on this exercise. for what i know your code is much more resource consuming in terms of logical operations (i.e. processor cycles) than the use of a simple function provided by an useful header.
cheers
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Pointer
You are viewing a single comment's thread. Return to all comments →
why not including it? abs(*a-*b) is much more agile. there is no rules against the use of headers (be them or ) on this exercise. for what i know your code is much more resource consuming in terms of logical operations (i.e. processor cycles) than the use of a simple function provided by an useful header. cheers