01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
package algs13.xbacktrack.xframework;

/**
 * An unsuccessful solution to a backtracking problem.
 */
public final class XBacktrackFailure implements XBacktrackResult {
    @Override
    public boolean isSuccess() {
        return false;
    }

    @Override
    public String toString() {
        return "No solution!";
    }
}