-
Practice>Python>Built-Ins>Any or Allhackerrank.com 2019. 3. 27. 13:04728x90
Any or All
Problem Link : https://www.hackerrank.com/challenges/any-or-all/problem
Difficulty : Easy
Tip
- how to check the number is palindromic
- Please use ::-1, it make reverse array
- palindromic number means that original and reverse are same
- v == v[::-1] <- this is a key
- we can use single line loop as parameter for any() and all()
- any(v > 0 for v in N1)
Solution
728x90'hackerrank.com' 카테고리의 다른 글
Practice>Python>Regex and Parsing>Re.split() (0) 2019.03.29 Practice>Python>Numpy>Concatenate (0) 2019.03.28 Practice>Python>Numpy>Transpose and Flatten (0) 2019.03.26 Practice>Python>Numpy>Shape and Reshape (0) 2019.03.26 Practice>Python>Numpy>Arrays (0) 2019.03.26