Author: ACMer
You are given a string s that consists of lower case English letters and brackets. Reverse the strings in each pair of matching parentheses, starting from the innermost one. …
You have some apples, where arr is the weight of the i-th apple. You also have a basket that can carry up to 5000 units of weight. Return the …
You are given two strings s and t of the same length. You want to change s to t. Changing the i-th character of s to i-th character of …
You may see Python code like this: for i,v in enumerate(data): pass So, what does the enumerate() function do? The enumerate() in python takes a list as its first …
Given an array of integers arr, write a function that returns true if and only if the number of occurrences of each value in the array is unique. Example …