{"action":"created","comment":{"url":"https://api.github.com/repos/asclines/AppliedAlgorithms/pulls/comments/89664666","pull_request_review_id":10209032,"id":89664666,"diff_hunk":"@@ -0,0 +1,102 @@\n+# New Year Chaos\r\n+This problem comes from [HackerRank](https://www.hackerrank.com/challenges/new-year-chaos)\r\n+and is categorized as a Constructive Algorithm\r\n+\r\n+HackerRank Difficulty: Medium\r\n+\r\n+\r\n+## Problem\r\n+### Statement\r\n+It's New Year's Day and everyone's in line for the Wonderland rollercoaster ride!\r\n+\r\n+There are  people queued up, and each person wears a sticker indicating their initial position in the queue (i.e.: _1,2,...,n-1,n_ , with the first number denoting the frontmost position).\r\n+\r\n+Any person in the queue can bribe the person directly in front of them to swap positions. If two people swap positions, they still wear the same sticker denoting their original place in line. One person can bribe at most two other persons.\r\n+\r\n+That is to say, if _n=8_ and _Person 5_ bribes _Person 4_, the queue will look like this: _1,2,3,5,4,6,7,8_.\r\n+\r\n+Fascinated by this chaotic queue, you decide you must know the minimum number of bribes that took place to get the queue into its current state!\r\n+\r\n+Note: Each _Person X_ wears sticker _X_, meaning they were initially the _Xth_ person in queue.\r\n+\r\n+#### Input Format\r\n+\r\n+The first line contains an integer, _T_ , denoting the number of test cases.  \r\n+Each test case is comprised of two lines; the first line has _n_ (an integer indicating the number of people in the queue), and the second line has _n_ space-separated integers describing the final state of the queue.\r\n+\r\n+### Overview\r\n+Here is a breakdown of what the problem is really asking.\r","path":"Guide/Constructive/New Year Chaos/README.md","position":28,"original_position":28,"commit_id":"570eda1f9cf66bd1b7a191e4bac4e95a1ecc3f95","original_commit_id":"570eda1f9cf66bd1b7a191e4bac4e95a1ecc3f95","user":{"login":"ASAAR","id":1311843,"avatar_url":"https://avatars.githubusercontent.com/u/1311843?v=3","gravatar_id":"","url":"https://api.github.com/users/ASAAR","html_url":"https://github.com/ASAAR","followers_url":"https://api.github.com/users/ASAAR/followers","following_url":"https://api.github.com/users/ASAAR/following{/other_user}","gists_url":"https://api.github.com/users/ASAAR/gists{/gist_id}","starred_url":"https://api.github.com/users/ASAAR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ASAAR/subscriptions","organizations_url":"https://api.github.com/users/ASAAR/orgs","repos_url":"https://api.github.com/users/ASAAR/repos","events_url":"https://api.github.com/users/ASAAR/events{/privacy}","received_events_url":"https://api.github.com/users/ASAAR/received_events","type":"User","site_admin":false},"body":"I like this, I say replace the two above sections with just this.","created_at":"2016-11-26T03:20:22Z","updated_at":"2016-11-26T03:23:34Z","html_url":"https://github.com/asclines/AppliedAlgorithms/pull/7#discussion_r89664666","pull_request_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/asclines/AppliedAlgorithms/pulls/comments/89664666"},"html":{"href":"https://github.com/asclines/AppliedAlgorithms/pull/7#discussion_r89664666"},"pull_request":{"href":"https://api.github.com/repos/asclines/AppliedAlgorithms/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/asclines/AppliedAlgorithms/pulls/7","id":95352032,"html_url":"https://github.com/asclines/AppliedAlgorithms/pull/7","diff_url":"https://github.com/asclines/AppliedAlgorithms/pull/7.diff","patch_url":"https://github.com/asclines/AppliedAlgorithms/pull/7.patch","issue_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/issues/7","number":7,"state":"open","locked":false,"title":"Added Week 6 solution and guide","user":{"login":"asclines","id":4149872,"avatar_url":"https://avatars.githubusercontent.com/u/4149872?v=3","gravatar_id":"","url":"https://api.github.com/users/asclines","html_url":"https://github.com/asclines","followers_url":"https://api.github.com/users/asclines/followers","following_url":"https://api.github.com/users/asclines/following{/other_user}","gists_url":"https://api.github.com/users/asclines/gists{/gist_id}","starred_url":"https://api.github.com/users/asclines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asclines/subscriptions","organizations_url":"https://api.github.com/users/asclines/orgs","repos_url":"https://api.github.com/users/asclines/repos","events_url":"https://api.github.com/users/asclines/events{/privacy}","received_events_url":"https://api.github.com/users/asclines/received_events","type":"User","site_admin":false},"body":"Closes #4 \r\nThoughts on format and file organization?","created_at":"2016-11-25T22:39:32Z","updated_at":"2016-11-26T03:23:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b8e96a98e722724f04e2e236640b5af1b4d28064","assignee":{"login":"asclines","id":4149872,"avatar_url":"https://avatars.githubusercontent.com/u/4149872?v=3","gravatar_id":"","url":"https://api.github.com/users/asclines","html_url":"https://github.com/asclines","followers_url":"https://api.github.com/users/asclines/followers","following_url":"https://api.github.com/users/asclines/following{/other_user}","gists_url":"https://api.github.com/users/asclines/gists{/gist_id}","starred_url":"https://api.github.com/users/asclines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asclines/subscriptions","organizations_url":"https://api.github.com/users/asclines/orgs","repos_url":"https://api.github.com/users/asclines/repos","events_url":"https://api.github.com/users/asclines/events{/privacy}","received_events_url":"https://api.github.com/users/asclines/received_events","type":"User","site_admin":false},"assignees":[{"login":"asclines","id":4149872,"avatar_url":"https://avatars.githubusercontent.com/u/4149872?v=3","gravatar_id":"","url":"https://api.github.com/users/asclines","html_url":"https://github.com/asclines","followers_url":"https://api.github.com/users/asclines/followers","following_url":"https://api.github.com/users/asclines/following{/other_user}","gists_url":"https://api.github.com/users/asclines/gists{/gist_id}","starred_url":"https://api.github.com/users/asclines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asclines/subscriptions","organizations_url":"https://api.github.com/users/asclines/orgs","repos_url":"https://api.github.com/users/asclines/repos","events_url":"https://api.github.com/users/asclines/events{/privacy}","received_events_url":"https://api.github.com/users/asclines/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/pulls/7/commits","review_comments_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/pulls/7/comments","review_comment_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/issues/7/comments","statuses_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/statuses/570eda1f9cf66bd1b7a191e4bac4e95a1ecc3f95","head":{"label":"asclines:Week6","ref":"Week6","sha":"570eda1f9cf66bd1b7a191e4bac4e95a1ecc3f95","user":{"login":"asclines","id":4149872,"avatar_url":"https://avatars.githubusercontent.com/u/4149872?v=3","gravatar_id":"","url":"https://api.github.com/users/asclines","html_url":"https://github.com/asclines","followers_url":"https://api.github.com/users/asclines/followers","following_url":"https://api.github.com/users/asclines/following{/other_user}","gists_url":"https://api.github.com/users/asclines/gists{/gist_id}","starred_url":"https://api.github.com/users/asclines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asclines/subscriptions","organizations_url":"https://api.github.com/users/asclines/orgs","repos_url":"https://api.github.com/users/asclines/repos","events_url":"https://api.github.com/users/asclines/events{/privacy}","received_events_url":"https://api.github.com/users/asclines/received_events","type":"User","site_admin":false},"repo":{"id":74715157,"name":"AppliedAlgorithms","full_name":"asclines/AppliedAlgorithms","owner":{"login":"asclines","id":4149872,"avatar_url":"https://avatars.githubusercontent.com/u/4149872?v=3","gravatar_id":"","url":"https://api.github.com/users/asclines","html_url":"https://github.com/asclines","followers_url":"https://api.github.com/users/asclines/followers","following_url":"https://api.github.com/users/asclines/following{/other_user}","gists_url":"https://api.github.com/users/asclines/gists{/gist_id}","starred_url":"https://api.github.com/users/asclines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asclines/subscriptions","organizations_url":"https://api.github.com/users/asclines/orgs","repos_url":"https://api.github.com/users/asclines/repos","events_url":"https://api.github.com/users/asclines/events{/privacy}","received_events_url":"https://api.github.com/users/asclines/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/asclines/AppliedAlgorithms","description":"Guides and solutions to various types of programming problems.","fork":false,"url":"https://api.github.com/repos/asclines/AppliedAlgorithms","forks_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/forks","keys_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/teams","hooks_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/hooks","issue_events_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/issues/events{/number}","events_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/events","assignees_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/assignees{/user}","branches_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/branches{/branch}","tags_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/tags","blobs_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/git/refs{/sha}","trees_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/statuses/{sha}","languages_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/languages","stargazers_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/stargazers","contributors_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/contributors","subscribers_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/subscribers","subscription_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/subscription","commits_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/commits{/sha}","git_commits_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/git/commits{/sha}","comments_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/comments{/number}","issue_comment_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/issues/comments{/number}","contents_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/contents/{+path}","compare_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/merges","archive_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/downloads","issues_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/issues{/number}","pulls_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/pulls{/number}","milestones_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/milestones{/number}","notifications_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/labels{/name}","releases_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/releases{/id}","deployments_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/deployments","created_at":"2016-11-25T01:18:13Z","updated_at":"2016-11-25T01:18:13Z","pushed_at":"2016-11-25T22:39:32Z","git_url":"git://github.com/asclines/AppliedAlgorithms.git","ssh_url":"git@github.com:asclines/AppliedAlgorithms.git","clone_url":"https://github.com/asclines/AppliedAlgorithms.git","svn_url":"https://github.com/asclines/AppliedAlgorithms","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"asclines:master","ref":"master","sha":"645b4cdbbdc534b8c665d2e86156fa5dd8cb9f12","user":{"login":"asclines","id":4149872,"avatar_url":"https://avatars.githubusercontent.com/u/4149872?v=3","gravatar_id":"","url":"https://api.github.com/users/asclines","html_url":"https://github.com/asclines","followers_url":"https://api.github.com/users/asclines/followers","following_url":"https://api.github.com/users/asclines/following{/other_user}","gists_url":"https://api.github.com/users/asclines/gists{/gist_id}","starred_url":"https://api.github.com/users/asclines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asclines/subscriptions","organizations_url":"https://api.github.com/users/asclines/orgs","repos_url":"https://api.github.com/users/asclines/repos","events_url":"https://api.github.com/users/asclines/events{/privacy}","received_events_url":"https://api.github.com/users/asclines/received_events","type":"User","site_admin":false},"repo":{"id":74715157,"name":"AppliedAlgorithms","full_name":"asclines/AppliedAlgorithms","owner":{"login":"asclines","id":4149872,"avatar_url":"https://avatars.githubusercontent.com/u/4149872?v=3","gravatar_id":"","url":"https://api.github.com/users/asclines","html_url":"https://github.com/asclines","followers_url":"https://api.github.com/users/asclines/followers","following_url":"https://api.github.com/users/asclines/following{/other_user}","gists_url":"https://api.github.com/users/asclines/gists{/gist_id}","starred_url":"https://api.github.com/users/asclines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asclines/subscriptions","organizations_url":"https://api.github.com/users/asclines/orgs","repos_url":"https://api.github.com/users/asclines/repos","events_url":"https://api.github.com/users/asclines/events{/privacy}","received_events_url":"https://api.github.com/users/asclines/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/asclines/AppliedAlgorithms","description":"Guides and solutions to various types of programming problems.","fork":false,"url":"https://api.github.com/repos/asclines/AppliedAlgorithms","forks_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/forks","keys_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/teams","hooks_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/hooks","issue_events_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/issues/events{/number}","events_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/events","assignees_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/assignees{/user}","branches_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/branches{/branch}","tags_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/tags","blobs_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/git/refs{/sha}","trees_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/statuses/{sha}","languages_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/languages","stargazers_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/stargazers","contributors_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/contributors","subscribers_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/subscribers","subscription_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/subscription","commits_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/commits{/sha}","git_commits_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/git/commits{/sha}","comments_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/comments{/number}","issue_comment_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/issues/comments{/number}","contents_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/contents/{+path}","compare_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/merges","archive_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/downloads","issues_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/issues{/number}","pulls_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/pulls{/number}","milestones_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/milestones{/number}","notifications_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/labels{/name}","releases_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/releases{/id}","deployments_url":"https://api.github.com/repos/asclines/AppliedAlgorithms/deployments","created_at":"2016-11-25T01:18:13Z","updated_at":"2016-11-25T01:18:13Z","pushed_at":"2016-11-25T22:39:32Z","git_url":"git://github.com/asclines/AppliedAlgorithms.git","ssh_url":"git@github.com:asclines/AppliedAlgorithms.git","clone_url":"https://github.com/asclines/AppliedAlgorithms.git","svn_url":"https://github.com/asclines/AppliedAlgorithms","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/asclines/AppliedAlgorithms/pulls/7"},"html":{"href":"https://github.com/asclines/AppliedAlgorithms/pull/7"},"issue":{"href":"https://api.github.com/repos/asclines/AppliedAlgorithms/issues/7"},"comments":{"href":"https://api.github.com/repos/asclines/AppliedAlgorithms/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/asclines/AppliedAlgorithms/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/asclines/AppliedAlgorithms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/asclines/AppliedAlgorithms/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/asclines/AppliedAlgorithms/statuses/570eda1f9cf66bd1b7a191e4bac4e95a1ecc3f95"}}}}
{"actor":{"display_login":"ASAAR"}}