This file contains 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
package yzhao.blog.bean; | |
import java.util.ArrayList; | |
import java.util.Iterator; | |
import java.util.List; | |
public class ArrayTest{ | |
public static void main (String[] args) { | |
List<String> list = new ArrayList<>(4); | |
list.add("1"); |
This file contains 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 void execute(Runnable command) { | |
if (command == null) | |
throw new NullPointerException(); | |
/* | |
* Proceed in 3 steps: | |
* | |
* 1. If fewer than corePoolSize threads are running, try to | |
* start a new thread with the given command as its first | |
* task. The call to addWorker atomically checks runState and | |
* workerCount, and so prevents false alarms that would add |
This file contains 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
class Singleton(object): | |
def __new__(cls): | |
_instance = None | |
if not hasattr(cls, '_instance'): | |
cls._instance = super(Singleton, cls).__new__(cls, *args, **kwarg) | |
return cls._instance |
This file contains 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
<div id="root"></div> |
This file contains 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
<div id="root"> | |
</div> |
This file contains 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
__author__ = "kenzhaoyihui" | |
class Solution(object): | |
def maxArea(self, height): | |
""" | |
:type: height: List[int] | |
:rtype: int | |
""" | |
size = len(height) |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title> React </title> | |
<script src="https://cdn.bootcss.com/react/15.4.2/react.min.js"></script> | |
<script src="https://cdn.bootcss.com/react/15.4.2/react-dom.min.js"></script> | |
<script src="https://cdn.bootcss.com/babel-standalone/6.22.1/babel.min.js"></script> | |
<script src="https://cdn.bootcss.com/jquery/2.1.4/jquery.min.js"></script> | |
</head> |