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
disable_share: true | |
author: aaa | |
http://localhost:1313/index.xml |
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
import edu.princeton.cs.algs4.StdRandom; | |
import java.util.Iterator; | |
import java.util.NoSuchElementException; | |
public class RandomizedQueue<Item> implements Iterable<Item> { | |
private Item[] items; | |
private int index = 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
import edu.princeton.cs.algs4.StdIn; | |
public class Permutation { | |
public static void main(String[] args) { | |
int k = Integer.parseInt(args[0]); | |
RandomizedQueue<String> randomizedQueue = new RandomizedQueue<>(); |
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
import java.util.Iterator; | |
import java.util.NoSuchElementException; | |
public class Deque<Item> implements Iterable<Item> { | |
private Node first; | |
private Node last; | |
private int size; |
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
import edu.princeton.cs.algs4.StdRandom; | |
import edu.princeton.cs.algs4.StdStats; | |
import edu.princeton.cs.algs4.Stopwatch; | |
public class PercolationStats { | |
private final double mean; | |
private final double stddev; |
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
import edu.princeton.cs.algs4.WeightedQuickUnionUF; | |
public class Percolation { | |
private final int n; | |
private boolean[] blocks; | |
private boolean[] checkBlocks; |
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
col=1 col=2 col=3 col=4 | |
row=1 0 1 2 3 4 | |
row=2 5 6 7 8 9 | |
... | |
1,2,,,,n |
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
{ | |
"size": 10, | |
"query": { | |
"wildcard": { | |
"aaaaa": { | |
"wildcard": "hoge*", | |
"boost": 1 | |
} | |
} | |
}, |
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
{ | |
"size": 10, | |
"query": { | |
"wildcard": { | |
"aaaaa": { | |
"wildcard": "hoge*", | |
"boost": 1 | |
} | |
} | |
}, |
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
org.apache.hadoop.service.ServiceStateException: Service Registry is in wrong state: STOPPED | |
at org.apache.hadoop.registry.client.impl.zk.CuratorService.checkServiceLive(CuratorService.java:188) | |
at org.apache.hadoop.registry.client.impl.zk.CuratorService.zkStat(CuratorService.java:446) | |
at org.apache.hadoop.registry.client.impl.zk.RegistryOperationsService.stat(RegistryOperationsService.java:137) | |
at org.apache.hadoop.registry.server.services.RegistryAdminService.purge(RegistryAdminService.java:459) | |
at org.apache.hadoop.registry.server.services.RegistryAdminService.purge(RegistryAdminService.java:520) | |
at org.apache.hadoop.registry.server.services.RegistryAdminService.purge(RegistryAdminService.java:520) | |
at org.apache.hadoop.registry.server.services.RegistryAdminService$AsyncPurge.call(RegistryAdminService.java:570) | |
at org.apache.hadoop.registry.server.services.RegistryAdminService$AsyncPurge.call(RegistryAdminService.java:543) | |
at java.util. |
NewerOlder