-
Practice>Data Structures>Arrays>Arrays - DShackerrank.com 2019. 4. 25. 08:34728x90
Arrays - DS
Problem Link : https://www.hackerrank.com/challenges/arrays-ds/problem
Difficulty : Easy
Tip
- Very common problem :-) reversing array
- There few ways to solve
- Implementing reversing array by using reverse index -1
- [a[(i+1)*-1] for i in range(len(a))]
- Simply call reversed(a)
- More simpler version is 'return a[::-1]'
Solution
728x90'hackerrank.com' 카테고리의 다른 글
Practice>Python>Numpy>Linear Algebra (0) 2019.04.25 Practice>Python>Numpy>Polynomials (0) 2019.04.25 Practice>Python>Closures and Decorators>Decorators 2 - Name Directory (0) 2019.04.23 Practice>Python>Closures and Decorators>Standardize Mobile Number Using Decorators (0) 2019.04.23 Practice>Python>Regex and Parsing>Detect Floating Point Number (0) 2019.04.22