We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Gaming Array
Gaming Array
Sort by
recency
|
131 Discussions
|
Please Login in order to post a comment
python3 def gamingArray(arr): curr_max = 0 bob_turn = True for n in arr: if n > curr_max: curr_max = n bob_turn = not bob_turn return ['ANDY', 'BOB'][not bob_turn] `
Thanks
def gamingArray(arr): # Write your code here turns = 0 def check_sort(check_arr): if check_arr == sorted(check_arr): return True return False while arr != []: if check_sort(arr): turns += len(arr) break else: i = arr.index(max(arr)) arr = arr[:i] turns += 1 if turns % 2 == 1: return "BOB" return "ANDY"
Are there any games that you play the most often? I'm sure that most people have a game that always brings a good mood and the opportunity to relax. For me, this is cs go, which I've been playing since school. It’s cool that now it’s possible to buy and sell cs go skins https://globelivemedia.com/gaming/where-to-buy-csgo-karambit-fade/. For me, this has become an interesting investment decision, since on modern platforms you can engage in cs go skin trading.