{"action":"opened","number":19,"pull_request":{"url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/pulls/19","id":156766866,"html_url":"https://github.com/CloudCoders/AdventOfCode2017/pull/19","diff_url":"https://github.com/CloudCoders/AdventOfCode2017/pull/19.diff","patch_url":"https://github.com/CloudCoders/AdventOfCode2017/pull/19.patch","issue_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/issues/19","number":19,"state":"open","locked":false,"title":"Added duxy solutions","user":{"login":"Duxy1996","id":11498689,"avatar_url":"https://avatars1.githubusercontent.com/u/11498689?v=4","gravatar_id":"","url":"https://api.github.com/users/Duxy1996","html_url":"https://github.com/Duxy1996","followers_url":"https://api.github.com/users/Duxy1996/followers","following_url":"https://api.github.com/users/Duxy1996/following{/other_user}","gists_url":"https://api.github.com/users/Duxy1996/gists{/gist_id}","starred_url":"https://api.github.com/users/Duxy1996/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Duxy1996/subscriptions","organizations_url":"https://api.github.com/users/Duxy1996/orgs","repos_url":"https://api.github.com/users/Duxy1996/repos","events_url":"https://api.github.com/users/Duxy1996/events{/privacy}","received_events_url":"https://api.github.com/users/Duxy1996/received_events","type":"User","site_admin":false},"body":"# Duxy's solution for days 1 to 6 challenge\r\n\r\nI'm trying to do each problem with differents programming languages.\r\n## Description\r\n\r\n### Day one\r\n>Add the numbers which are followed by a equal number in the array.\r\nAdd the numbers which the array.length/2 position number  is equal in the array.\r\n\r\n### Day two\r\n\r\n>Add the difference of the max and min numbers of each row in one matrix.\r\nAdd the division of the numbers which division is integer in each row in one matrix.\r\n\r\n### Day three\r\n\r\n>Do the Manhattan distances in a spiral matrix.\r\nGet the first number which greater than the given one in a spiral incremental matrix.\r\n\r\n### Day four\r\n>Filter phrasepasswords with some conditions.\r\n* No same words\r\n* symbols cant make the same words.\r\n\r\n### Day five\r\n>Given some restrictions as jumps in one array, calculate how many jumps \r\n  it has to do to exit from the array (make the index get out of bounds).\r\n\r\n### Day sixs\r\n> Get the number of steps you had to do until the matrix converges\r\n Get the distance of the first element which appears repeatedly and its position. \r\n\r\n## Solution\r\n\r\n### Day one\r\n>Make a for which compare all the numbers with the condition. And if it is true add the number.\r\nI use modules to make the for circular\r\n\r\nO(n) = n\r\nT = f(n)=n\r\nE = t(n)=n\r\n\r\n### Day two\r\n>Make for which gets all the differences and added it.\r\nMake for which gets all the pairs of divisible numbers, make the division and added it.\r\n\r\nO(n) = n^2\r\nT = f(n)=n * m\r\nE = t(n)=n * m This could be better... too much better\r\n\r\n### Day three\r\n> With a sequence of for instructions I \"make\" the matrix and when i find the element only calc de distances with a simple sum. I do not waste the memory, I create only one cell, and in the next step i overwrite it.\r\n\r\nO(n) = n^2\r\nT = f(n)=n*m\r\nE = t(n)=1\r\n\r\n### Day four\r\n> With the second solution I solve both: I get the input, I order the strings and then y compare the lengths of a lis(list) and set(list) is it is different it's a bad pass. \r\n\r\nO(n) = n\r\nT = f(n)=2n\r\nE = t(n)=n\r\n\r\n### Day five\r\n> Whit a While instruction I follow the restrictions until I get the solution.\r\n\r\nI could not  calc the cost.\r\n\r\n### Day sixs\r\n> This code is a kind of Frankenstein, it compares each state of the solution with the previous solutions, if it is on it, we have the result. (The steps and the first element which is repeted)  \r\n\r\nO(n) = n^2\r\nT = f(n)=n*m\r\nE = t(n)=n*m\r\n\r\n## Tests battery\r\n\r\n>  I did not any test, but right now I'm going to do unit tests like @cotel. And I will do the tests for the first 6  problems despite of all of them passed the AOC's test.\r\n\r\nHappy Advent of Code! and Happy Christmas!\r\n\r\nI'm very thankful with @tonilopezmr and with @Cotel for let me join the repo.","created_at":"2017-12-06T15:55:03Z","updated_at":"2017-12-06T15:55:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/pulls/19/commits","review_comments_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/pulls/19/comments","review_comment_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/issues/19/comments","statuses_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/statuses/4e29619f5abdcd6ac6b3b4f5cc9da0150b39102b","head":{"label":"CloudCoders:duxyday6","ref":"duxyday6","sha":"4e29619f5abdcd6ac6b3b4f5cc9da0150b39102b","user":{"login":"CloudCoders","id":18675825,"avatar_url":"https://avatars0.githubusercontent.com/u/18675825?v=4","gravatar_id":"","url":"https://api.github.com/users/CloudCoders","html_url":"https://github.com/CloudCoders","followers_url":"https://api.github.com/users/CloudCoders/followers","following_url":"https://api.github.com/users/CloudCoders/following{/other_user}","gists_url":"https://api.github.com/users/CloudCoders/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudCoders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudCoders/subscriptions","organizations_url":"https://api.github.com/users/CloudCoders/orgs","repos_url":"https://api.github.com/users/CloudCoders/repos","events_url":"https://api.github.com/users/CloudCoders/events{/privacy}","received_events_url":"https://api.github.com/users/CloudCoders/received_events","type":"Organization","site_admin":false},"repo":{"id":112667277,"name":"AdventOfCode2017","full_name":"CloudCoders/AdventOfCode2017","owner":{"login":"CloudCoders","id":18675825,"avatar_url":"https://avatars0.githubusercontent.com/u/18675825?v=4","gravatar_id":"","url":"https://api.github.com/users/CloudCoders","html_url":"https://github.com/CloudCoders","followers_url":"https://api.github.com/users/CloudCoders/followers","following_url":"https://api.github.com/users/CloudCoders/following{/other_user}","gists_url":"https://api.github.com/users/CloudCoders/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudCoders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudCoders/subscriptions","organizations_url":"https://api.github.com/users/CloudCoders/orgs","repos_url":"https://api.github.com/users/CloudCoders/repos","events_url":"https://api.github.com/users/CloudCoders/events{/privacy}","received_events_url":"https://api.github.com/users/CloudCoders/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CloudCoders/AdventOfCode2017","description":"A repository for talking about solutions for https://adventofcode.com/2017 challenge","fork":false,"url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017","forks_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/forks","keys_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/teams","hooks_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/hooks","issue_events_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/issues/events{/number}","events_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/events","assignees_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/assignees{/user}","branches_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/branches{/branch}","tags_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/tags","blobs_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/git/refs{/sha}","trees_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/statuses/{sha}","languages_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/languages","stargazers_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/stargazers","contributors_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/contributors","subscribers_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/subscribers","subscription_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/subscription","commits_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/commits{/sha}","git_commits_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/git/commits{/sha}","comments_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/comments{/number}","issue_comment_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/issues/comments{/number}","contents_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/contents/{+path}","compare_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/merges","archive_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/downloads","issues_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/issues{/number}","pulls_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/pulls{/number}","milestones_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/milestones{/number}","notifications_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/labels{/name}","releases_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/releases{/id}","deployments_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/deployments","created_at":"2017-11-30T22:20:55Z","updated_at":"2017-12-01T22:11:13Z","pushed_at":"2017-12-06T15:03:12Z","git_url":"git://github.com/CloudCoders/AdventOfCode2017.git","ssh_url":"git@github.com:CloudCoders/AdventOfCode2017.git","clone_url":"https://github.com/CloudCoders/AdventOfCode2017.git","svn_url":"https://github.com/CloudCoders/AdventOfCode2017","homepage":null,"size":103,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"CloudCoders:master","ref":"master","sha":"18975070f73bc60f8891d19113928b0111425f72","user":{"login":"CloudCoders","id":18675825,"avatar_url":"https://avatars0.githubusercontent.com/u/18675825?v=4","gravatar_id":"","url":"https://api.github.com/users/CloudCoders","html_url":"https://github.com/CloudCoders","followers_url":"https://api.github.com/users/CloudCoders/followers","following_url":"https://api.github.com/users/CloudCoders/following{/other_user}","gists_url":"https://api.github.com/users/CloudCoders/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudCoders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudCoders/subscriptions","organizations_url":"https://api.github.com/users/CloudCoders/orgs","repos_url":"https://api.github.com/users/CloudCoders/repos","events_url":"https://api.github.com/users/CloudCoders/events{/privacy}","received_events_url":"https://api.github.com/users/CloudCoders/received_events","type":"Organization","site_admin":false},"repo":{"id":112667277,"name":"AdventOfCode2017","full_name":"CloudCoders/AdventOfCode2017","owner":{"login":"CloudCoders","id":18675825,"avatar_url":"https://avatars0.githubusercontent.com/u/18675825?v=4","gravatar_id":"","url":"https://api.github.com/users/CloudCoders","html_url":"https://github.com/CloudCoders","followers_url":"https://api.github.com/users/CloudCoders/followers","following_url":"https://api.github.com/users/CloudCoders/following{/other_user}","gists_url":"https://api.github.com/users/CloudCoders/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudCoders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudCoders/subscriptions","organizations_url":"https://api.github.com/users/CloudCoders/orgs","repos_url":"https://api.github.com/users/CloudCoders/repos","events_url":"https://api.github.com/users/CloudCoders/events{/privacy}","received_events_url":"https://api.github.com/users/CloudCoders/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CloudCoders/AdventOfCode2017","description":"A repository for talking about solutions for https://adventofcode.com/2017 challenge","fork":false,"url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017","forks_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/forks","keys_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/teams","hooks_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/hooks","issue_events_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/issues/events{/number}","events_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/events","assignees_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/assignees{/user}","branches_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/branches{/branch}","tags_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/tags","blobs_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/git/refs{/sha}","trees_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/statuses/{sha}","languages_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/languages","stargazers_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/stargazers","contributors_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/contributors","subscribers_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/subscribers","subscription_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/subscription","commits_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/commits{/sha}","git_commits_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/git/commits{/sha}","comments_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/comments{/number}","issue_comment_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/issues/comments{/number}","contents_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/contents/{+path}","compare_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/merges","archive_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/downloads","issues_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/issues{/number}","pulls_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/pulls{/number}","milestones_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/milestones{/number}","notifications_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/labels{/name}","releases_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/releases{/id}","deployments_url":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/deployments","created_at":"2017-11-30T22:20:55Z","updated_at":"2017-12-01T22:11:13Z","pushed_at":"2017-12-06T15:03:12Z","git_url":"git://github.com/CloudCoders/AdventOfCode2017.git","ssh_url":"git@github.com:CloudCoders/AdventOfCode2017.git","clone_url":"https://github.com/CloudCoders/AdventOfCode2017.git","svn_url":"https://github.com/CloudCoders/AdventOfCode2017","homepage":null,"size":103,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/pulls/19"},"html":{"href":"https://github.com/CloudCoders/AdventOfCode2017/pull/19"},"issue":{"href":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/issues/19"},"comments":{"href":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/CloudCoders/AdventOfCode2017/statuses/4e29619f5abdcd6ac6b3b4f5cc9da0150b39102b"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":2725,"deletions":0,"changed_files":26}}
{"actor":{"display_login":"Duxy1996"}}