Guest User

Untitled

a guest
Jun 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. def solution(num, lst):
  2. elst = []
  3. cnt = 0;
  4. for i in range(1, len(lst)):
  5. ans = i // num +1 ;
  6. ans2 = i % num + 1;
  7. if lst[i] in lst[:i]:
  8. print("ch")
  9. return [ans2, ans];
  10. elif lst[i][0] != lst[i-1][-1]:
  11. print("ch", i)
  12. return [ans2, ans];
  13. else:
  14. return [0,0];
Add Comment
Please, Sign In to add comment