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.
One thing that helped me implement a solution was to think about the relationship between the value and the index of the value in an array (think of the array as being 1-indexed). In this case, the 20th element of the array is 1. That means that f(20) = 1, for an arbitrary reason. Finding the inverse, then, is asking "For what value of x does f(x) yield 1?"
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Security Function Inverses
You are viewing a single comment's thread. Return to all comments →
One thing that helped me implement a solution was to think about the relationship between the value and the index of the value in an array (think of the array as being 1-indexed). In this case, the 20th element of the array is 1. That means that f(20) = 1, for an arbitrary reason. Finding the inverse, then, is asking "For what value of x does f(x) yield 1?"