-
Practice>Python>Python Functionals>Reduce Functionhackerrank.com 2019. 3. 22. 12:45728x90
Reduce Function
Difficulty : MediumTip
- Please read problem description carefully regarding reduce()
- lambda function can take multiple argument
- lambda x, y: x*y, [[1,2],[3,4],[5,6]]
- (1*2)*(3*4)*(5*6)
Solution
728x90'hackerrank.com' 카테고리의 다른 글
Practice>Python>Numpy>Arrays (0) 2019.03.26 Practice>Python>Debugging>Default Arguments (0) 2019.03.22 Practice>Python>Python Functionals>Validating Email Addresses With a Filter (0) 2019.03.21 Practice>Python>Python Functionals>Map and Lambda Function (0) 2019.03.21 Practice<Python<Built-Ins<Input() (0) 2019.03.20