Given the array of integers 5 7 5 2 4 5 1 2 3 3 4 6 7 8 7 6 4 3 2 2
, count the occurrences of integer value 2
.
The source code of this example is available in CEAL
(.sca
) format.
Encrypted Numbers: Given the db.sec (which contains the encryptions of all elements in the above array), the algorithm counts the occurrences of the number given in input.sec (in this case, the input is 2
).