update scripts

This commit is contained in:
Rohit Tanwar
2018-02-21 13:13:01 +05:30
parent 863f61ec1d
commit 03d6c27f27
719 changed files with 32 additions and 207630 deletions

View File

@ -1,7 +1,7 @@
from functools import reduce
def count_occurences(arr, val):
return reduce(
(lambda x, y: x + 1 if y == val and type(y) == type(val) else x + 0),
arr)
from functools import reduce
def count_occurences(arr, val):
return reduce(
(lambda x, y: x + 1 if y == val and type(y) == type(val) else x + 0),
arr)