Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
sherxon committed May 20, 2017
1 parent 7e6c64a commit f611150
Show file tree
Hide file tree
Showing 262 changed files with 357 additions and 346 deletions.
2 changes: 1 addition & 1 deletion src/algo/TreeTraversals.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package algo;

import interviewquestions.utils.TreeNode;
import problems.utils.TreeNode;

import java.util.LinkedList;
import java.util.Queue;
Expand Down
1 change: 1 addition & 0 deletions src/amazon/First.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Created by sherxon on 5/18/17.
*/
public class First {

public static void main(String[] args) {

}
Expand Down
2 changes: 1 addition & 1 deletion src/contests/contest25/BoundaryofBinaryTree.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package contests.contest25;

import interviewquestions.utils.TreeNode;
import problems.utils.TreeNode;

import java.util.*;

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 2017-01-29.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 2016-12-23.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 1/10/17.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 2016-12-29.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

import java.util.Arrays;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package interviewquestions.easy;
package problems.easy;

import interviewquestions.utils.TreeNode;
import problems.utils.TreeNode;

/**
* Created by sherxon on 2016-12-30.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 1/29/17.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 2016-12-26.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package interviewquestions.easy;
package problems.easy;

import interviewquestions.utils.TreeNode;
import problems.utils.TreeNode;

import java.util.ArrayList;
import java.util.LinkedList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package interviewquestions.easy;
package problems.easy;

import interviewquestions.utils.TreeNode;
import problems.utils.TreeNode;

import java.util.ArrayList;
import java.util.LinkedList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package interviewquestions.easy;
package problems.easy;

import interviewquestions.utils.TreeNode;
import problems.utils.TreeNode;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package interviewquestions.easy;
package problems.easy;

import interviewquestions.utils.TreeNode;
import problems.utils.TreeNode;

import java.util.HashMap;
import java.util.Map;
Expand All @@ -9,13 +9,14 @@
* Created by sherxon on 4/23/17.
*/
public class BinaryTreeTIlt {
public static void main(String[] args) {
System.out.println(( char)('0'+1));
}
int sum=0;
Map<TreeNode, Integer> tilts= new HashMap<>();
Map<TreeNode, Integer> sums=new HashMap<>();

public static void main(String[] args) {
System.out.println((char) ('0' + 1));
}

public int findTilt(TreeNode root) {
if(root==null)return sum;
go(root);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 2016-12-29.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 1/22/17.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

import java.util.HashSet;
import java.util.Set;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

import java.util.HashMap;
import java.util.HashSet;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 1/6/17.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 1/16/17.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 2016-12-28.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package interviewquestions.easy;
package problems.easy;

import interviewquestions.utils.ListNode;
import problems.utils.ListNode;

/**
* Created by sherxon on 2016-12-24.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package interviewquestions.easy;
package problems.easy;

import interviewquestions.utils.TreeNode;
import problems.utils.TreeNode;

import java.util.HashMap;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

import java.util.List;
import java.util.stream.Collectors;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package interviewquestions.easy;
package problems.easy;

import interviewquestions.utils.TreeNode;
import problems.utils.TreeNode;

import java.util.ArrayList;
import java.util.HashMap;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 2016-12-23.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

import java.util.HashMap;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 2016-12-29.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

import java.util.ArrayList;
import java.util.HashSet;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 2016-12-29.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 2016-12-23.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

import java.util.HashSet;
import java.util.Set;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 2016-12-29.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

import java.util.Stack;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

import java.util.LinkedList;
import java.util.Queue;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 2/26/17.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 5/3/17.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package interviewquestions.easy;
package problems.easy;

import java.util.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
* Created by sherxon on 2016-12-27.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

import java.util.HashSet;
import java.util.Set;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package interviewquestions.easy;
package problems.easy;

import interviewquestions.utils.ListNode;
import problems.utils.ListNode;

/**
* Created by sherxon on 2016-12-28.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package interviewquestions.easy;
package problems.easy;

import interviewquestions.utils.TreeNode;
import problems.utils.TreeNode;

import java.util.LinkedList;
import java.util.Queue;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 2016-12-30.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

import java.util.HashMap;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 1/13/17.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 1/22/17.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package interviewquestions.easy;
package problems.easy;

import interviewquestions.utils.ListNode;
import problems.utils.ListNode;

/**
* Created by sherxon on 2016-12-28.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 1/29/17.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 2016-12-28.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package interviewquestions.easy;
package problems.easy;

import interviewquestions.utils.TreeNode;
import problems.utils.TreeNode;

/**
* Created by sherxon on 1/12/17.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 1/7/17.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 2016-12-30.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package interviewquestions.easy;
package problems.easy;

/**
* Created by sherxon on 1/14/17.
Expand Down
Loading

0 comments on commit f611150

Please sign in to comment.