{"action":"created","comment":{"url":"https://api.github.com/repos/gapoorva/interviewq/pulls/comments/76352415","id":76352415,"diff_hunk":"@@ -0,0 +1,272 @@\n+#include <stack>\n+#include <iostream>\n+\n+template <typename T>\n+// Expects type T to have an operator overload for <. \n+class binary_tree {\n+  friend class iterator;\n+private:\n+  struct node {\n+    T data;\n+    node* left;\n+    node* right;\n+    node* parent;\n+    node(T val, node* parent): data(val), left(nullptr), right(nullptr), parent(parent) {}\n+  };\n+  node* root;\n+  void delete_helper(node*);\n+  void add_helper(T, node* &);\n+  bool find_helper(T, node*);\n+  void print_helper(node*);\n+  node*& find_node(T, node*&);\n+  node* in_order_successor(node*);\n+  node* in_order_predecessor(node*);\n+  void remove_helper(node*&);\n+public:\n+  // does an in-order traversal of the tree\n+  // modifying the tree invalidates the iterator\n+  class iterator {\n+    friend class binary_tree;\n+  private:\n+    std::stack<node*> nodes;\n+  public:\n+    iterator();\n+    iterator(const iterator&); //cpy-ctor\n+    iterator operator=(const iterator&);\n+    iterator operator++();\n+    T& operator*(); // get data at this node\n+    bool operator!=(const iterator&);\n+    bool operator==(const iterator&);\n+  };\n+  binary_tree();\n+  ~binary_tree();\n+  void add(T);\n+  bool find(T);\n+  bool empty();\n+  iterator first();\n+  iterator end();\n+  void print();\n+  void remove(T);\n+};\n+\n+template <typename T>\n+binary_tree<T>::binary_tree(): root(nullptr) {}\n+\n+template <typename T>\n+void binary_tree<T>::delete_helper(binary_tree<T>::node* n) {\n+  if(!n) return;\n+  if (n->left) delete_helper(n->left);\n+  n->left = nullptr;\n+  if (n->right) delete_helper(n->right);\n+  n->right = nullptr;\n+  delete n;\n+  n = nullptr;\n+}\n+\n+template <typename T>\n+binary_tree<T>::~binary_tree() {\n+  delete_helper(root);\n+}\n+\n+template <typename T>\n+void binary_tree<T>::add_helper(T val, binary_tree<T>::node* & n) {\n+  if(!n) {\n+    n = new node(val, nullptr);\n+    return;\n+  } else if (n->data < val) {\n+    if (n->right) add_helper(val, n->right);\n+    else n->right = new node(val, n);\n+  } else if (val < n->data) {\n+    if (n->left) add_helper(val, n->left);\n+    else n->left = new node(val, n);\n+  }\n+  // if n contains data then we already have the value\n+}\n+\n+template <typename T>\n+void binary_tree<T>::add(T val) {\n+  add_helper(val, root);\n+}\n+\n+template <typename T>\n+bool binary_tree<T>::find_helper(T val, binary_tree<T>::node* n) {\n+  if(!n) return false;\n+  else if (n->data < val) {\n+    return find_helper(val, n->right);\n+  } else if (val < n->data) {\n+    return find_helper(val, n->left);\n+  } else {\n+    return true; // this node contains val so val exists in tree.\n+  }\n+}\n+\n+\n+template <typename T>\n+bool binary_tree<T>::find(T val) {\n+  return find_helper(val, root);\n+}\n+\n+template <typename T>\n+bool binary_tree<T>::empty() {\n+  return root == nullptr;\n+}\n+\n+template <typename T> \n+typename binary_tree<T>::iterator binary_tree<T>::first() {\n+  iterator i;\n+  node* first = root;\n+  while(first) {\n+    i.nodes.push(first);\n+    if (first->left) {\n+      first = first->left;\n+    }\n+    first = first->right;\n+  }\n+  return i;\n+}\n+\n+template <typename T>\n+typename binary_tree<T>::iterator binary_tree<T>::end() {\n+  return iterator();\n+}\n+\n+template <typename T>\n+void binary_tree<T>::print_helper(node* n) {\n+  if(n) {\n+    print_helper(n->left);\n+    std::cout << n->data << \" \";\n+    print_helper(n->right);\n+  }\n+}\n+\n+template <typename T>\n+void binary_tree<T>::print() {\n+  std::cout << \"[ \";\n+  print_helper(root);\n+  std::cout << \"]\\n\";\n+}\n+\n+template <typename T>\n+typename binary_tree<T>::node*& binary_tree<T>::find_node(T val, binary_tree<T>::node*& n) {\n+  if(!n) return n;\n+  else if(n->data < val) {\n+    return find_node(val, n->right);\n+  } else if (val < n->data) {\n+    return find_node(val, n->left);\n+  } else return n;\n+}\n+\n+template <typename T>\n+typename binary_tree<T>::node* binary_tree<T>::in_order_successor(binary_tree<T>::node* n) {\n+  if(!n->right) return nullptr;\n+  binary_tree<T>::node* candidate = n->right;\n+  while(candidate->left) {\n+    candidate = candidate->left;\n+  }\n+  return candidate;\n+} \n+\n+template <typename T>\n+typename binary_tree<T>::node* binary_tree<T>::in_order_predecessor(binary_tree<T>::node* n){\n+  if (!n->left) return nullptr;\n+  binary_tree<T>::node* candidate = n->left;\n+  while(candidate->right) {\n+    candidate = candidate->right;\n+  }\n+  return candidate;\n+}\n+\n+template <typename T>\n+void binary_tree<T>::remove_helper(binary_tree<T>::node* & n) {\n+  if(!n) return;\n+  binary_tree<T>::node* successor = in_order_successor(n);\n+  if(successor) {\n+    n->data = successor->data;\n+    remove_helper(successor);\n+    return;\n+  }\n+  binary_tree<T>::node* predecessor = in_order_predecessor(n);\n+  if(predecessor) {\n+    n->data = predecessor->data;\n+    remove_helper(predecessor);\n+    return;\n+  }\n+  // n is a leaf node. Just delete.\n+  binary_tree<T>::node* parent = n->parent;\n+  if(!parent) {\n+    if(n == root) {\n+      delete root;\n+      root = nullptr;\n+    } else {\n+      delete n;\n+      n = nullptr;\n+    }\n+  } else if(parent->left == n) {\n+    delete parent->left;\n+    parent->left = nullptr;\n+  } else {\n+    delete parent->right;\n+    parent->right = nullptr; \n+  }\n+}\n+\n+template <typename T>\n+void binary_tree<T>::remove(T val) {\n+  binary_tree<T>::node* to_delete = find_node(val, root);\n+  if(!to_delete) return;\n+  remove_helper(to_delete);\n+}\n+\n+\n+\n+/// ITERATOR CLASS IMPLEMENTATION\n+\n+\n+template <typename T>\n+binary_tree<T>::iterator::iterator() {}\n+\n+template <typename T>\n+binary_tree<T>::iterator::iterator(const iterator& other) {\n+  nodes = other.nodes;\n+}\n+\n+template <typename T>\n+typename binary_tree<T>::iterator binary_tree<T>::iterator::operator=(const iterator& other) {\n+  this->nodes = other.nodes;\n+  return *this;\n+}\n+\n+template <typename T>\n+typename binary_tree<T>::iterator binary_tree<T>::iterator::operator++() {\n+  if(!this->nodes.empty()) {\n+    binary_tree<T>::node* me = this->nodes.top();\n+    this->nodes.pop();\n+    if(me->right) {\n+      this->nodes.push(me->right);\n+      me = me->right;\n+      while(me->left) {\n+        this->nodes.push(me->left);\n+        me = me->left;\n+      }\n+    }\n+  }\n+  return *this;\n+}\n+\n+template <typename T>\n+T& binary_tree<T>::iterator::operator*() {\n+  if(this->nodes.empty()) throw \"tried to deference null iterator\";\n+  else return this->nodes.top()->data;\n+}\n+\n+template <typename T>\n+bool binary_tree<T>::iterator::operator!=(const iterator& other) {\n+  return (this->nodes.empty() && other.nodes.empty())\n+   || (!this->nodes.empty() && !other.nodes.empty() && this->nodes.top() == other.nodes.top());\n+}\n+\n+template <typename T>\n+bool binary_tree<T>::iterator::operator==(const iterator& other) {\n+  return !(this->operator!=(other));","path":"technical/binary_tree/c++/binary_tree.h","position":293,"original_position":270,"commit_id":"f82b55bb5f451e23d9493dd271f865adaf0b90a9","original_commit_id":"4e65509ca1402c6cbc1fe6e9913f0965dc758142","user":{"login":"jasonrbr","id":10368330,"avatar_url":"https://avatars.githubusercontent.com/u/10368330?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonrbr","html_url":"https://github.com/jasonrbr","followers_url":"https://api.github.com/users/jasonrbr/followers","following_url":"https://api.github.com/users/jasonrbr/following{/other_user}","gists_url":"https://api.github.com/users/jasonrbr/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonrbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonrbr/subscriptions","organizations_url":"https://api.github.com/users/jasonrbr/orgs","repos_url":"https://api.github.com/users/jasonrbr/repos","events_url":"https://api.github.com/users/jasonrbr/events{/privacy}","received_events_url":"https://api.github.com/users/jasonrbr/received_events","type":"User","site_admin":false},"body":"return !(*this != other)","created_at":"2016-08-26T01:24:43Z","updated_at":"2016-08-26T01:24:43Z","html_url":"https://github.com/gapoorva/interviewq/pull/6#discussion_r76352415","pull_request_url":"https://api.github.com/repos/gapoorva/interviewq/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/gapoorva/interviewq/pulls/comments/76352415"},"html":{"href":"https://github.com/gapoorva/interviewq/pull/6#discussion_r76352415"},"pull_request":{"href":"https://api.github.com/repos/gapoorva/interviewq/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/gapoorva/interviewq/pulls/6","id":82817104,"html_url":"https://github.com/gapoorva/interviewq/pull/6","diff_url":"https://github.com/gapoorva/interviewq/pull/6.diff","patch_url":"https://github.com/gapoorva/interviewq/pull/6.patch","issue_url":"https://api.github.com/repos/gapoorva/interviewq/issues/6","number":6,"state":"open","locked":false,"title":"gapoorva","user":{"login":"gapoorva","id":8525432,"avatar_url":"https://avatars.githubusercontent.com/u/8525432?v=3","gravatar_id":"","url":"https://api.github.com/users/gapoorva","html_url":"https://github.com/gapoorva","followers_url":"https://api.github.com/users/gapoorva/followers","following_url":"https://api.github.com/users/gapoorva/following{/other_user}","gists_url":"https://api.github.com/users/gapoorva/gists{/gist_id}","starred_url":"https://api.github.com/users/gapoorva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gapoorva/subscriptions","organizations_url":"https://api.github.com/users/gapoorva/orgs","repos_url":"https://api.github.com/users/gapoorva/repos","events_url":"https://api.github.com/users/gapoorva/events{/privacy}","received_events_url":"https://api.github.com/users/gapoorva/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-26T00:55:38Z","updated_at":"2016-08-26T01:24:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bed95c9cd2d7466b88e27c48780f0a007b1e330b","assignee":{"login":"gapoorva","id":8525432,"avatar_url":"https://avatars.githubusercontent.com/u/8525432?v=3","gravatar_id":"","url":"https://api.github.com/users/gapoorva","html_url":"https://github.com/gapoorva","followers_url":"https://api.github.com/users/gapoorva/followers","following_url":"https://api.github.com/users/gapoorva/following{/other_user}","gists_url":"https://api.github.com/users/gapoorva/gists{/gist_id}","starred_url":"https://api.github.com/users/gapoorva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gapoorva/subscriptions","organizations_url":"https://api.github.com/users/gapoorva/orgs","repos_url":"https://api.github.com/users/gapoorva/repos","events_url":"https://api.github.com/users/gapoorva/events{/privacy}","received_events_url":"https://api.github.com/users/gapoorva/received_events","type":"User","site_admin":false},"assignees":[{"login":"gapoorva","id":8525432,"avatar_url":"https://avatars.githubusercontent.com/u/8525432?v=3","gravatar_id":"","url":"https://api.github.com/users/gapoorva","html_url":"https://github.com/gapoorva","followers_url":"https://api.github.com/users/gapoorva/followers","following_url":"https://api.github.com/users/gapoorva/following{/other_user}","gists_url":"https://api.github.com/users/gapoorva/gists{/gist_id}","starred_url":"https://api.github.com/users/gapoorva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gapoorva/subscriptions","organizations_url":"https://api.github.com/users/gapoorva/orgs","repos_url":"https://api.github.com/users/gapoorva/repos","events_url":"https://api.github.com/users/gapoorva/events{/privacy}","received_events_url":"https://api.github.com/users/gapoorva/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/gapoorva/interviewq/pulls/6/commits","review_comments_url":"https://api.github.com/repos/gapoorva/interviewq/pulls/6/comments","review_comment_url":"https://api.github.com/repos/gapoorva/interviewq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gapoorva/interviewq/issues/6/comments","statuses_url":"https://api.github.com/repos/gapoorva/interviewq/statuses/f82b55bb5f451e23d9493dd271f865adaf0b90a9","head":{"label":"gapoorva:gapoorva","ref":"gapoorva","sha":"f82b55bb5f451e23d9493dd271f865adaf0b90a9","user":{"login":"gapoorva","id":8525432,"avatar_url":"https://avatars.githubusercontent.com/u/8525432?v=3","gravatar_id":"","url":"https://api.github.com/users/gapoorva","html_url":"https://github.com/gapoorva","followers_url":"https://api.github.com/users/gapoorva/followers","following_url":"https://api.github.com/users/gapoorva/following{/other_user}","gists_url":"https://api.github.com/users/gapoorva/gists{/gist_id}","starred_url":"https://api.github.com/users/gapoorva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gapoorva/subscriptions","organizations_url":"https://api.github.com/users/gapoorva/orgs","repos_url":"https://api.github.com/users/gapoorva/repos","events_url":"https://api.github.com/users/gapoorva/events{/privacy}","received_events_url":"https://api.github.com/users/gapoorva/received_events","type":"User","site_admin":false},"repo":{"id":65489518,"name":"interviewq","full_name":"gapoorva/interviewq","owner":{"login":"gapoorva","id":8525432,"avatar_url":"https://avatars.githubusercontent.com/u/8525432?v=3","gravatar_id":"","url":"https://api.github.com/users/gapoorva","html_url":"https://github.com/gapoorva","followers_url":"https://api.github.com/users/gapoorva/followers","following_url":"https://api.github.com/users/gapoorva/following{/other_user}","gists_url":"https://api.github.com/users/gapoorva/gists{/gist_id}","starred_url":"https://api.github.com/users/gapoorva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gapoorva/subscriptions","organizations_url":"https://api.github.com/users/gapoorva/orgs","repos_url":"https://api.github.com/users/gapoorva/repos","events_url":"https://api.github.com/users/gapoorva/events{/privacy}","received_events_url":"https://api.github.com/users/gapoorva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gapoorva/interviewq","description":null,"fork":false,"url":"https://api.github.com/repos/gapoorva/interviewq","forks_url":"https://api.github.com/repos/gapoorva/interviewq/forks","keys_url":"https://api.github.com/repos/gapoorva/interviewq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gapoorva/interviewq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gapoorva/interviewq/teams","hooks_url":"https://api.github.com/repos/gapoorva/interviewq/hooks","issue_events_url":"https://api.github.com/repos/gapoorva/interviewq/issues/events{/number}","events_url":"https://api.github.com/repos/gapoorva/interviewq/events","assignees_url":"https://api.github.com/repos/gapoorva/interviewq/assignees{/user}","branches_url":"https://api.github.com/repos/gapoorva/interviewq/branches{/branch}","tags_url":"https://api.github.com/repos/gapoorva/interviewq/tags","blobs_url":"https://api.github.com/repos/gapoorva/interviewq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gapoorva/interviewq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gapoorva/interviewq/git/refs{/sha}","trees_url":"https://api.github.com/repos/gapoorva/interviewq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gapoorva/interviewq/statuses/{sha}","languages_url":"https://api.github.com/repos/gapoorva/interviewq/languages","stargazers_url":"https://api.github.com/repos/gapoorva/interviewq/stargazers","contributors_url":"https://api.github.com/repos/gapoorva/interviewq/contributors","subscribers_url":"https://api.github.com/repos/gapoorva/interviewq/subscribers","subscription_url":"https://api.github.com/repos/gapoorva/interviewq/subscription","commits_url":"https://api.github.com/repos/gapoorva/interviewq/commits{/sha}","git_commits_url":"https://api.github.com/repos/gapoorva/interviewq/git/commits{/sha}","comments_url":"https://api.github.com/repos/gapoorva/interviewq/comments{/number}","issue_comment_url":"https://api.github.com/repos/gapoorva/interviewq/issues/comments{/number}","contents_url":"https://api.github.com/repos/gapoorva/interviewq/contents/{+path}","compare_url":"https://api.github.com/repos/gapoorva/interviewq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gapoorva/interviewq/merges","archive_url":"https://api.github.com/repos/gapoorva/interviewq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gapoorva/interviewq/downloads","issues_url":"https://api.github.com/repos/gapoorva/interviewq/issues{/number}","pulls_url":"https://api.github.com/repos/gapoorva/interviewq/pulls{/number}","milestones_url":"https://api.github.com/repos/gapoorva/interviewq/milestones{/number}","notifications_url":"https://api.github.com/repos/gapoorva/interviewq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gapoorva/interviewq/labels{/name}","releases_url":"https://api.github.com/repos/gapoorva/interviewq/releases{/id}","deployments_url":"https://api.github.com/repos/gapoorva/interviewq/deployments","created_at":"2016-08-11T17:44:53Z","updated_at":"2016-08-25T19:41:57Z","pushed_at":"2016-08-26T01:22:10Z","git_url":"git://github.com/gapoorva/interviewq.git","ssh_url":"git@github.com:gapoorva/interviewq.git","clone_url":"https://github.com/gapoorva/interviewq.git","svn_url":"https://github.com/gapoorva/interviewq","homepage":null,"size":1261,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"gapoorva:master","ref":"master","sha":"af522bb671389f4ba5173b5cd4a746358de05479","user":{"login":"gapoorva","id":8525432,"avatar_url":"https://avatars.githubusercontent.com/u/8525432?v=3","gravatar_id":"","url":"https://api.github.com/users/gapoorva","html_url":"https://github.com/gapoorva","followers_url":"https://api.github.com/users/gapoorva/followers","following_url":"https://api.github.com/users/gapoorva/following{/other_user}","gists_url":"https://api.github.com/users/gapoorva/gists{/gist_id}","starred_url":"https://api.github.com/users/gapoorva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gapoorva/subscriptions","organizations_url":"https://api.github.com/users/gapoorva/orgs","repos_url":"https://api.github.com/users/gapoorva/repos","events_url":"https://api.github.com/users/gapoorva/events{/privacy}","received_events_url":"https://api.github.com/users/gapoorva/received_events","type":"User","site_admin":false},"repo":{"id":65489518,"name":"interviewq","full_name":"gapoorva/interviewq","owner":{"login":"gapoorva","id":8525432,"avatar_url":"https://avatars.githubusercontent.com/u/8525432?v=3","gravatar_id":"","url":"https://api.github.com/users/gapoorva","html_url":"https://github.com/gapoorva","followers_url":"https://api.github.com/users/gapoorva/followers","following_url":"https://api.github.com/users/gapoorva/following{/other_user}","gists_url":"https://api.github.com/users/gapoorva/gists{/gist_id}","starred_url":"https://api.github.com/users/gapoorva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gapoorva/subscriptions","organizations_url":"https://api.github.com/users/gapoorva/orgs","repos_url":"https://api.github.com/users/gapoorva/repos","events_url":"https://api.github.com/users/gapoorva/events{/privacy}","received_events_url":"https://api.github.com/users/gapoorva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gapoorva/interviewq","description":null,"fork":false,"url":"https://api.github.com/repos/gapoorva/interviewq","forks_url":"https://api.github.com/repos/gapoorva/interviewq/forks","keys_url":"https://api.github.com/repos/gapoorva/interviewq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gapoorva/interviewq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gapoorva/interviewq/teams","hooks_url":"https://api.github.com/repos/gapoorva/interviewq/hooks","issue_events_url":"https://api.github.com/repos/gapoorva/interviewq/issues/events{/number}","events_url":"https://api.github.com/repos/gapoorva/interviewq/events","assignees_url":"https://api.github.com/repos/gapoorva/interviewq/assignees{/user}","branches_url":"https://api.github.com/repos/gapoorva/interviewq/branches{/branch}","tags_url":"https://api.github.com/repos/gapoorva/interviewq/tags","blobs_url":"https://api.github.com/repos/gapoorva/interviewq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gapoorva/interviewq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gapoorva/interviewq/git/refs{/sha}","trees_url":"https://api.github.com/repos/gapoorva/interviewq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gapoorva/interviewq/statuses/{sha}","languages_url":"https://api.github.com/repos/gapoorva/interviewq/languages","stargazers_url":"https://api.github.com/repos/gapoorva/interviewq/stargazers","contributors_url":"https://api.github.com/repos/gapoorva/interviewq/contributors","subscribers_url":"https://api.github.com/repos/gapoorva/interviewq/subscribers","subscription_url":"https://api.github.com/repos/gapoorva/interviewq/subscription","commits_url":"https://api.github.com/repos/gapoorva/interviewq/commits{/sha}","git_commits_url":"https://api.github.com/repos/gapoorva/interviewq/git/commits{/sha}","comments_url":"https://api.github.com/repos/gapoorva/interviewq/comments{/number}","issue_comment_url":"https://api.github.com/repos/gapoorva/interviewq/issues/comments{/number}","contents_url":"https://api.github.com/repos/gapoorva/interviewq/contents/{+path}","compare_url":"https://api.github.com/repos/gapoorva/interviewq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gapoorva/interviewq/merges","archive_url":"https://api.github.com/repos/gapoorva/interviewq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gapoorva/interviewq/downloads","issues_url":"https://api.github.com/repos/gapoorva/interviewq/issues{/number}","pulls_url":"https://api.github.com/repos/gapoorva/interviewq/pulls{/number}","milestones_url":"https://api.github.com/repos/gapoorva/interviewq/milestones{/number}","notifications_url":"https://api.github.com/repos/gapoorva/interviewq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gapoorva/interviewq/labels{/name}","releases_url":"https://api.github.com/repos/gapoorva/interviewq/releases{/id}","deployments_url":"https://api.github.com/repos/gapoorva/interviewq/deployments","created_at":"2016-08-11T17:44:53Z","updated_at":"2016-08-25T19:41:57Z","pushed_at":"2016-08-26T01:22:10Z","git_url":"git://github.com/gapoorva/interviewq.git","ssh_url":"git@github.com:gapoorva/interviewq.git","clone_url":"https://github.com/gapoorva/interviewq.git","svn_url":"https://github.com/gapoorva/interviewq","homepage":null,"size":1261,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gapoorva/interviewq/pulls/6"},"html":{"href":"https://github.com/gapoorva/interviewq/pull/6"},"issue":{"href":"https://api.github.com/repos/gapoorva/interviewq/issues/6"},"comments":{"href":"https://api.github.com/repos/gapoorva/interviewq/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/gapoorva/interviewq/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/gapoorva/interviewq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gapoorva/interviewq/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/gapoorva/interviewq/statuses/f82b55bb5f451e23d9493dd271f865adaf0b90a9"}}}}
{"actor":{"display_login":"jasonrbr"}}