Which of the following conditions guarantees that a function f:A→B possesses an inverse function f−1:B→A?
a) f\;\text{is one–to–one}
b) f\;\text{is both one–to–one \text{and} onto}
c) f\;\text{is onto}
d) f\;\text{is continuous \text{and} one–to–one}