array
-
Practice>Data Structures>Arrays>Arrays - DShackerrank.com 2019. 4. 25. 08:34
hackerrank.com 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 #!/bin/python3 import math import os import rand..