<commit_before>from __future__ import print_function
from ds_queue import Qeueu

def pass_hot_potato(name_ls, num):
	pass<commit_msg>Complete alg_hot_potato.py<commit_after>from __future__ import print_function
from ds_queue import Queue

def pass_hot_potato(name_ls, num):
	name_queue = Queue()

	for name in name_ls:
		name_queue.enqueue(name)

	while name_queue.size() > 1:
		for i in xrange(num):
			name_queue.enqueue(name_queue.dequeue())

		name_queue.dequeue()

	return name_queue.dequeue()


def main():
	name_ls = ['Bowen', 'Bowen1', 'Bowen2']
	num = 5
	print(name_ls)
	print('num: {}'.format(num))
	print(pass_hot_potato(name_ls, num))


if __name__ == '__main__':
	main()
{'fraction_non_alphanumeric': 0.11859443631039532, 'fraction_numerical': 0.005856515373352855, 'mean_word_length': 5.772277227722772, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1153388', 'n_tokens_mistral': 279, 'n_tokens_neox': 262, 'n_words': 58}