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.
For those inputs Testcase 2 failed. Function is previous square function which is one-to-one function. Bijective function is not excluding repetitive elements " if and only if each element in the co-domain is the image of, at least, one element in the domain " .As long as the x in the Set1 does not have repetitive y image in the Set2 and direction is bi so function square should be bijective.
Either Testcase 2 is wrong or bijective definition in the problem.I am not english native btw.
However if I enter testcase2 as "Test against custom input" it runs successfully. I rephrase problem like this how does testcase2 run successfully when entered manually but fails automatically?
To elaborate further either my code is above or testcase 2 because negative numbers are not tested.Here is an explanation.
Example: The function f(x) = x2 from the set of positive real numbers to positive real numbers is both injective and surjective. Thus it is also bijective. But the same function from the set of all real numbers real numbers is not bijective Bijective
Security Bijective Functions
You are viewing a single comment's thread. Return to all comments →
For those inputs Testcase 2 failed. Function is previous square function which is one-to-one function. Bijective function is not excluding repetitive elements " if and only if each element in the co-domain is the image of, at least, one element in the domain " .As long as the x in the Set1 does not have repetitive y image in the Set2 and direction is bi so function square should be bijective. Either Testcase 2 is wrong or bijective definition in the problem.I am not english native btw.
However if I enter testcase2 as "Test against custom input" it runs successfully. I rephrase problem like this how does testcase2 run successfully when entered manually but fails automatically?
To elaborate further either my code is above or testcase 2 because negative numbers are not tested.Here is an explanation.
Example: The function f(x) = x2 from the set of positive real numbers to positive real numbers is both injective and surjective. Thus it is also bijective. But the same function from the set of all real numbers real numbers is not bijective Bijective