We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0db5d03 + 6a0902f commit 178fdbfCopy full SHA for 178fdbf
Strings/MergeTools
@@ -0,0 +1,17 @@
1
+'''
2
+Title : Merge The Tools!
3
+Subdomain : Strings
4
+Domain : Python
5
+Author : Atharva Shah
6
+Created : 15 March 2021
7
+Problem : https://www.hackerrank.com/challenges/merge-the-tools/
8
9
+from collections import OrderedDict
10
+
11
+def merge_the_tools(string, k):
12
+ for i in range(0, len(string)-k+1, k):
13
+ print(''.join(OrderedDict.fromkeys(string[i:i + k])))
14
15
+if __name__ == '__main__':
16
+ string, k = input(), int(input())
17
+ merge_the_tools(string, k)
0 commit comments