Untitled
unknown
plain_text
a month ago
364 B
2
Indexable
בן הדיקן - פתרון public static void Dean(Queue<string> q, string name) { Queue<string> tmp = new Queue<string>(); if (q.Head() == name) return; string x = q.Remove(); while (!q.IsEmpty()) { if (q.Head() == name) { tmp.Insert(name); tmp.Insert(x); q.Remove(); while (!q.IsEmpty()) tmp.Insert(q.Remove()); }
Editor is loading...
Leave a Comment