Driver Code
var A = [ 12 , 11 , 10 , 13 ] ; var B = [ 7 , 10 , 6 , 2 ] ; var N = A . length ; var K = 3 ; if ( checkSubsetSum ( A , B , N , K ) ) { document . write ( " " ) ; } else { document . write ( " " ) ; }