Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ojenikoh on github.
  • I am ojenikoh (https://keybase.io/ojenikoh) on keybase.
  • I have a public key whose fingerprint is BF66 5FF1 F6AA 3566 D129 3D65 724D 7B85 3A53 93FC

To claim this, I am signing this object:

function solution($K, $A) {
$compliments = array();
array_walk_recursive($A, function($current, $key) use ($K, $A, &$compliments) {
foreach ($A as $oKey => $value) {
if ($current + $value == $K) {
$compliments[] = true;
}
}
});
return count($compliments);