Created
November 1, 2016 20:14
-
-
Save mmasztalerczuk/f62f739b733289e9aa4605be88ed8845 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SortingSubsets: | |
def getMinimalSize(self, a): | |
b = sorted(a) | |
ans = 0 | |
for x in range(len(a)): | |
if a[x] != b[x]: | |
ans += 1 | |
return ans |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment