Skip to content

Commit

Permalink
rename package
Browse files Browse the repository at this point in the history
  • Loading branch information
fishercoder1534 committed May 29, 2017
1 parent 05dec76 commit 82af3a4
Show file tree
Hide file tree
Showing 620 changed files with 1,133 additions and 999 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.common.classes;
package com.fishercoder.common.classes;

/**This is a class used by one OJ problem: MeetingRooms*/
public class Interval implements Comparable<Interval> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.stevesun.common.classes;
package com.fishercoder.common.classes;

import com.stevesun.common.utils.CommonUtils;
import com.fishercoder.common.utils.CommonUtils;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.common.classes;
package com.fishercoder.common.classes;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.stevesun.common.classes;
package com.fishercoder.common.classes;

/**
* Created by stevesun on 12/31/16.
* Created by fishercoder on 12/31/16.
*/
public class Point {
public int x;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.common.classes;
package com.fishercoder.common.classes;

public class Reader4 {
public int read4(char[] buf){
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.common.classes;
package com.fishercoder.common.classes;

/**
* Created by fishercoder1534 on 10/5/16.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.common.classes;
package com.fishercoder.common.classes;

public class TreeNode {
public int val;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.common.classes;
package com.fishercoder.common.classes;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
*
*/
package com.stevesun.common.utils;
package com.fishercoder.common.utils;

import java.util.ArrayList;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.stevesun.common.utils;
package com.fishercoder.common.utils;

import com.stevesun.common.classes.ListNode;
import com.fishercoder.common.classes.ListNode;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
*
*/
package com.stevesun.common.utils;
package com.fishercoder.common.utils;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
*
*/
package com.stevesun.common.utils;
package com.fishercoder.common.utils;

import com.stevesun.common.classes.TreeNode;
import com.fishercoder.common.classes.TreeNode;

import java.util.*;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

import java.util.*;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

/**
* Implement a data structure supporting the following operations:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

/**
* Given an Android 3x3 key lock screen and two integers m and n, where 1 ≤ m ≤ n ≤ 9, count the total number of unlock patterns of the Android lock screen, which consist of minimum of m keys and maximum n keys.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

/**A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the same.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

/**
* You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

import java.util.Arrays;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

import com.stevesun.common.classes.TreeNode;
import com.fishercoder.common.classes.TreeNode;

/**
* Given a binary tree, determine if it is height-balanced.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

/**
* Suppose you have N integers from 1 to N. We define a beautiful arrangement as an array that is constructed by these N numbers successfully
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

import java.util.ArrayList;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

/**Say you have an array for which the ith element is the price of a given stock on day i.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;


/**123. Best Time to Buy and Sell Stock III
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

/**Say you have an array for which the ith element is the price of a given stock on day i.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

import com.stevesun.common.classes.TreeNode;
import com.fishercoder.common.classes.TreeNode;

import java.util.*;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

import com.stevesun.common.classes.TreeNode;
import com.fishercoder.common.classes.TreeNode;

/**
* Given a binary tree, find the length of the longest consecutive sequence path.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

import com.stevesun.common.classes.TreeNode;
import com.fishercoder.common.classes.TreeNode;

/**
* Given a binary tree, you need to find the length of Longest Consecutive Path in Binary Tree.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

import com.stevesun.common.classes.TreeNode;
import com.stevesun.common.utils.CommonUtils;
import com.fishercoder.common.classes.TreeNode;
import com.fishercoder.common.utils.CommonUtils;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

import com.stevesun.common.classes.TreeNode;
import com.stevesun.common.utils.CommonUtils;
import com.fishercoder.common.classes.TreeNode;
import com.fishercoder.common.utils.CommonUtils;

import java.util.ArrayList;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

import com.stevesun.common.classes.TreeNode;
import com.fishercoder.common.classes.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 com.stevesun.solutions;
package com.fishercoder.solutions;

import com.stevesun.common.classes.TreeNode;
import com.fishercoder.common.classes.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 com.stevesun.solutions;
package com.fishercoder.solutions;

import com.stevesun.common.classes.TreeNode;
import com.fishercoder.common.classes.TreeNode;

/**
* Given a binary tree where all the right nodes are either leaf nodes with a sibling (a left node that shares the same parent node) or empty, flip it upside down and turn it into a tree where the original right nodes turned into left leaf nodes. Return the new root.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

import com.stevesun.common.classes.TreeNode;
import com.fishercoder.common.classes.TreeNode;

import java.util.*;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

/**
* Given a 2D grid, each cell is either a wall 'W', an enemy 'E' or empty '0' (the number zero), return the maximum enemies you can kill using one bomb.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

import com.stevesun.common.classes.TreeNode;
import com.fishercoder.common.classes.TreeNode;

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 com.stevesun.solutions;
package com.fishercoder.solutions;

import java.util.HashMap;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

/**
* Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to burst all the balloons. If the you burst balloon i you will get nums[left] * nums[i] * nums[right] coins. Here left and right are adjacent indices of i. After the burst, the left and right then becomes adjacent.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

/**
* There are N children standing in a line. Each child is assigned a rating value.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

/**Leetcode 70: You are climbing a stair case. It takes n steps to reach to the top.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

import com.stevesun.common.classes.UndirectedGraphNode;
import com.fishercoder.common.classes.UndirectedGraphNode;

import java.util.HashMap;
import java.util.LinkedList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

import com.stevesun.common.classes.TreeNode;
import com.fishercoder.common.classes.TreeNode;

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 com.stevesun.solutions;
package com.fishercoder.solutions;

/**
* You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you need to make up that amount. If that amount of money cannot be made up by any combination of the coins, return -1.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

import com.stevesun.common.utils.CommonUtils;
import com.fishercoder.common.utils.CommonUtils;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

import com.stevesun.common.utils.CommonUtils;
import com.fishercoder.common.utils.CommonUtils;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

import java.util.*;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

import com.stevesun.common.utils.CommonUtils;
import com.fishercoder.common.utils.CommonUtils;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;
import java.util.*;

/**Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

/**
* Given two strings representing two complex numbers.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

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 com.stevesun.solutions;
package com.fishercoder.solutions;

import com.stevesun.common.classes.TreeNode;
import com.fishercoder.common.classes.TreeNode;

/**
* You need to construct a binary tree from a string consisting of parenthesis and integers.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

/**
* For a web developer, it is very important to know how to design a web page's size. So, given a specific rectangular web page’s area, your job by now is to design a rectangular web page, whose length L and width W satisfy the following requirements:
Expand All @@ -18,7 +18,7 @@
The given area won't exceed 10,000,000 and is a positive integer
The web page's width and length you designed must be positive integers.

* Created by stevesun on 1/25/17.
* Created by fishercoder on 1/25/17.
*/
public class ConstructTheRectangle {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stevesun.solutions;
package com.fishercoder.solutions;

/**
* Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a container, such that the container contains the most water.
Expand Down
Loading

0 comments on commit 82af3a4

Please sign in to comment.