Cody

Solution 2432747

Submitted on 31 May 2020 by Nikolaos Nikolaou
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
Q_PS = 0; J=1; K=1; y_correct=1; assert(isequal(JK_FF(Q_PS,J,K),y_correct))

Table = 0 1 1 1 1 1 0 0 1 1 0 1 1 1 0 0 1 0 0 0 0 1 0 0 NS = 1 0 0 0 1 1 0 1 t = 0 1 1 Q_NS = 1

2   Pass
Q_PS = 1; J=1; K=1; y_correct=0; assert(isequal(JK_FF(Q_PS,J,K),y_correct))

Table = 0 1 1 1 1 1 0 0 1 1 0 1 1 1 0 0 1 0 0 0 0 1 0 0 NS = 1 0 0 0 1 1 0 1 t = 1 1 1 Q_NS = 0

3   Pass
Q_PS = 0; J=0; K=1; y_correct=0; assert(isequal(JK_FF(Q_PS,J,K),y_correct))

Table = 0 1 1 1 1 1 0 0 1 1 0 1 1 1 0 0 1 0 0 0 0 1 0 0 NS = 1 0 0 0 1 1 0 1 t = 0 0 1 Q_NS = 0

4   Pass
Q_PS = 1; J=0; K=1; y_correct=0; assert(isequal(JK_FF(Q_PS,J,K),y_correct))

Table = 0 1 1 1 1 1 0 0 1 1 0 1 1 1 0 0 1 0 0 0 0 1 0 0 NS = 1 0 0 0 1 1 0 1 t = 1 0 1 Q_NS = 0

5   Pass
Q_PS = 1; J=1; K=0; y_correct=1; assert(isequal(JK_FF(Q_PS,J,K),y_correct))

Table = 0 1 1 1 1 1 0 0 1 1 0 1 1 1 0 0 1 0 0 0 0 1 0 0 NS = 1 0 0 0 1 1 0 1 t = 1 1 0 Q_NS = 1

6   Pass
Q_PS = 0; J=1; K=0; y_correct=1; assert(isequal(JK_FF(Q_PS,J,K),y_correct))

Table = 0 1 1 1 1 1 0 0 1 1 0 1 1 1 0 0 1 0 0 0 0 1 0 0 NS = 1 0 0 0 1 1 0 1 t = 0 1 0 Q_NS = 1

7   Pass
Q_PS = 0; J=0; K=0; y_correct=0; assert(isequal(JK_FF(Q_PS,J,K),y_correct))

Table = 0 1 1 1 1 1 0 0 1 1 0 1 1 1 0 0 1 0 0 0 0 1 0 0 NS = 1 0 0 0 1 1 0 1 t = 0 0 0 Q_NS = 0

8   Pass
Q_PS = 1; J=0; K=0; y_correct=1; assert(isequal(JK_FF(Q_PS,J,K),y_correct))

Table = 0 1 1 1 1 1 0 0 1 1 0 1 1 1 0 0 1 0 0 0 0 1 0 0 NS = 1 0 0 0 1 1 0 1 t = 1 0 0 Q_NS = 1