This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [treshold, direction] = classificationTreshold(D1, D2) | |
meA=D1.Mean; | |
siA=D1.Sigma; | |
meC=D2.Mean; | |
siC=D2.Sigma; | |
hlavni = (siC^2-siA^2); | |
funA = [ | |
hlavni |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
long change(const int sum, const int coins[], const int size) { | |
if ( sum == 0 ) return 0; | |
if ( coins == NULL || size == 0 ) return 0; | |
long * out = new long[sum + 1]; | |
out[0] = 1; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static LinkedList<LinkedList<Integer>> findSum(int t, LinkedList<Integer> input, LinkedList<Integer> used) { | |
LinkedList<LinkedList<Integer>> inner, out = new LinkedList<LinkedList<Integer>>(); | |
Integer sum = 0, temp; | |
LinkedList<Integer> usedBk, inputBk = (LinkedList<Integer>) input.clone(); | |
while ( !inputBk.isEmpty() ) { | |
temp = inputBk.poll(); | |
if ( temp == sum ) { |
NewerOlder