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.
1 parent 6e15a8a commit e953ff8Copy full SHA for e953ff8
main.py
@@ -214,3 +214,22 @@ def nonSubscribers(subscriptions1, subscriptions2):
214
if subscriptions2.count(subscription) == 0:
215
results.append(subscription)
216
return results
217
+
218
+def normalize(g):
219
+ results=[]
220
+ for items in g:
221
+ result=[]
222
+ i=0
223
+ added=0
224
+ for item in items:
225
+ if alphas.index(item[0]) != i+added:
226
+ result.append(None)
227
+ added=added+1
228
+ result.append(item)
229
+ i=i+1
230
+ # Add none at end of list when your list size is 0 or 1 or 2
231
+ # This will not run when your list size is 3
232
+ for i in range(len(result), countChild):
233
234
+ results.append(result)
235
+ return results
0 commit comments