ginortS
-
Practice>Python>Built-Ins>ginortShackerrank.com 2019. 4. 29. 13:00
hackerrank.com ginortS Problem Link : https://www.hackerrank.com/challenges/ginorts/problem Difficulty : Medium Tip We should sort as per four groups myfilter() function is written to get four gourps. Sort each groups and concate them Solution s = input() def myfilter(s): lc = [] wc = [] on = [] en = [] for i in range(len(s)): c = s[i] if 'a'