diff options
Diffstat (limited to 'progs/a713.py')
-rw-r--r-- | progs/a713.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/progs/a713.py b/progs/a713.py new file mode 100644 index 0000000..772766f --- /dev/null +++ b/progs/a713.py @@ -0,0 +1,10 @@ +def minimum_Length(s) :
+ maxOcc = 0
+ n = len(s)
+ arr = [0]*26
+ for i in range(n) :
+ arr[ord(s[i]) -ord('a')] += 1
+ for i in range(26) :
+ if arr[i] > maxOcc :
+ maxOcc = arr[i]
+ return n - maxOcc
\ No newline at end of file |