| java.lang.Object examples.supergene.Force
Force | final public class Force (Code) | | Solve the change problem using force method. This class was used to
verify if the solution exists in general.
author: Audrius Meskauskas |
Method Summary | |
public static void | main(String[] args) Test the Force method itself. | public static boolean | solve(int a_sum) Check the existence of a soulution. |
REPORT_ENABLED | public static boolean REPORT_ENABLED(Code) | | |
main | public static void main(String[] args)(Code) | | Test the Force method itself.
Parameters: args - ignored |
solve | public static boolean solve(int a_sum)(Code) | | Check the existence of a soulution.
Parameters: a_sum - the sum needed true if the change can be expressed in coins, satisfyingpennies mod 2 = nickels mod 2 author: Audrius Meskauskas |
|
|