This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PowXY { | |
public static void main(String[] args) { | |
double x = pow(2,5); | |
System.out.println(x); | |
} | |
public static double pow(double x, int n) { | |
if (n == 0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Solution { | |
public void rotate(int[] nums, int k) { | |
int length = nums.length; | |
// if k > length, deal with circulation situation | |
k = k % length; | |
if (length == 1) | |
return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Title: CC150 8.1 findKth.java | |
* Time: 20140112 | |
* Creator: blindchaser | |
* Time Complexity: | |
* Space Complexity: | |
* 优空间解法 | |
* 优时间解法: | |
* 心得: 抄抄更健康 | |
* | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Title: CC150 8.2 callCenter | |
* Time: 20140115 | |
* Creator: blindchaser | |
* Time Complexity: | |
* Space Complexity: | |
* 优空间解法 | |
* 优时间解法: | |
* 心得: 可以跑 | |
* | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Title: CC150 7.7 findKth | |
* Time: 20140112 | |
* Creator: blindchaser | |
* Time Complexity: | |
* Space Complexity: | |
* 优空间解法 | |
* 优时间解法: | |
* 心得: 引用了一百个包,引用成马 | |
* | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Title: CC150 7.5 twoSquares | |
* Time: 20140111 | |
* Creator: blindchaser | |
* Time Complexity: | |
* Space Complexity: | |
* 优空间解法 | |
* 优时间解法: | |
* 心得: 第六章有点好玩 | |
* | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Title: CC150 7.4 Operations | |
* Time: 20140111 | |
* Creator: blindchaser | |
* Time Complexity: | |
* Space Complexity: | |
* 优空间解法 | |
* 优时间解法: | |
* 心得: 第六章有点好玩 | |
* | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Title: CC150 6.6 Lockers | |
* Time: 20140111 | |
* Creator: blindchaser | |
* Time Complexity: | |
* Space Complexity: | |
* 优空间解法 | |
* 优时间解法: | |
* 心得: 第六章有点好玩 | |
* | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Title: CC150 6.3 fourQuart | |
* Time: 20140111 | |
* Creator: blindchaser | |
* Time Complexity: | |
* Space Complexity: | |
* 优空间解法 | |
* 优时间解法: | |
* 心得: 第六章有点好玩 | |
* | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Title: CC150 6.2 colorProblem | |
* Time: 20140111 | |
* Creator: blindchaser | |
* Time Complexity: | |
* Space Complexity: | |
* 优空间解法 | |
* 优时间解法: | |
* 心得: 看了书里的答案,不可能。 单复数上色问题 | |
* | |
* |
NewerOlder