{"id":4456,"date":"2020-06-28T10:17:29","date_gmt":"2020-06-28T07:17:29","guid":{"rendered":"https:\/\/elzero.org\/?p=4456"},"modified":"2022-10-26T19:47:29","modified_gmt":"2022-10-26T16:47:29","slug":"shuffle-list-elements-challenge","status":"publish","type":"post","link":"https:\/\/elzero.org\/old\/shuffle-list-elements-challenge\/","title":{"rendered":"Shuffle List Elements"},"content":{"rendered":"<h3>\u0645\u0642\u062f\u0645\u0629 \u0639\u0646 \u0627\u0644\u062a\u062d\u062f\u064a<\/h3>\r\n\r\n<div class=\"text\">\r\n\u0642\u0645 \u0628\u0639\u0645\u0644 \u062e\u0644\u0637 \u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644 Array \u0644\u062a\u062c\u0639\u0644\u0647\u0645 \u064a\u0638\u0647\u0631\u0648\u0627 \u0628\u0634\u0643\u0644 \u0639\u0634\u0648\u0627\u0626\u064a \u0643\u0644 \u0645\u0631\u0629 \r\n<\/div>\r\n\r\n<h3>\u0627\u0644\u0645\u0637\u0644\u0648\u0628<\/h3>\r\n\r\n<ul class=\"points\">\r\n  <li>\u0642\u0645 \u0628\u0625\u0646\u0634\u0627\u0621 Function \u0628\u0625\u0633\u0645 shuffling \u062a\u0642\u0628\u0644 \u0645\u0646\u0643 Parameter \u0648\u0627\u062d\u062f \u0648\u0647\u0648 \u0627\u0644 Array<\/li>\r\n  <li>\u0642\u0645 \u0628\u0639\u0645\u0644 \u062e\u0644\u0637 (Shuffle) \u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644 Array<\/li>\r\n  <li>\u0642\u0645 \u0628\u0637\u0628\u0627\u0639\u0629 \u062c\u0645\u064a\u0639 \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0628\u0639\u062f \u062e\u0644\u0637\u0647\u0627<\/li>\r\n<\/ul>\r\n\r\n<h3>\u0627\u0644\u062a\u062d\u062f\u064a\u0627\u062a<\/h3>\r\n\r\n<ul class=\"points\">\r\n  <li>\u0644\u0627 \u062a\u0633\u062a\u062e\u062f\u0645 \u0623\u064a Method \u062c\u0627\u0647\u0632\u0629 \u062a\u0642\u0648\u0645 \u0628\u0639\u0645\u0644 Shuffle \u0642\u0645 \u0628\u0627\u0644\u0639\u0645\u0644\u064a\u0629 \u0628\u0646\u0641\u0633\u0643<\/li>\r\n<\/ul>\r\n\r\n<h3>\u0645\u062b\u0627\u0644 \u0628\u0644\u063a\u0629 Python<\/h3>\r\n\r\n<script type=\"text\/plain\" class=\"language-python\">\r\ndef shuffling(nums):\r\n  # Your Code\r\n\r\n# Test Cases\r\nprint(shuffling([1, 2, 4, 10, 20, 12]))  # [4, 20, 1, 12, 10, 2]\r\nprint(shuffling([1, 2, 4, 10, 20, 12]))  # [4, 1, 10, 12, 20, 2]\r\nprint(shuffling([1, 2, 4, 10, 20, 12]))  # [2, 4, 20, 12, 1, 10]\r\n<\/script>","protected":false},"excerpt":{"rendered":"<p>Shuffle List Elements<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[882],"tags":[557,213,451,458,707,407,644],"class_list":["post-4456","post","type-post","status-publish","format-standard","hentry","category-programming-challenges","tag-array","tag-list","tag-programming","tag-python","tag-shuffle","tag-task","tag-644"],"_links":{"self":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/4456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/comments?post=4456"}],"version-history":[{"count":9,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/4456\/revisions"}],"predecessor-version":[{"id":12415,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/4456\/revisions\/12415"}],"wp:attachment":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/media?parent=4456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/categories?post=4456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/tags?post=4456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}