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
#include <stdio.h> | |
#include <math.h> | |
typedef struct { | |
const char *name; | |
int rank; | |
double expect_rate; | |
} girl; | |
const int K = 10; |
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
/** | |
* Interface PackageScanner is the basic interface for package scanning. | |
* | |
* Created by SylvanasSun on 10/13/2017. | |
*/ | |
public interface PackageScanner { | |
/** | |
* Scanning specified package then return a class list of the after the scan. | |
*/ |
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
import java.util.Iterator; | |
import java.util.NoSuchElementException; | |
import java.util.Random; | |
/** | |
* A skip list is a data structure that allows fast search within | |
* an ordered sequence of elements. Fast search is made possible | |
* by maintaining a linked hierarchy of subsequences, with each | |
* successive subsequence skipping over fewer elements than the | |
* previous one. Searching starts in the sparsest subsequence until |
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
# Created by SylvanasSun in 2017.10.17 | |
# !/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import collections | |
import jieba | |
from jieba import analyse | |
# TODO: Change default hash algorithms to the other algorithms of high-performance. |
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
import requests | |
import logging | |
METHOD_GET = 'GET' | |
METHOD_POST = 'POST' | |
RETURN_TEXT = 'TEXT' | |
RETURN_BINARY = 'BINARY' | |
RETURN_JSON = 'JSON' | |
RETURN_RAW = 'RAW' |
OlderNewer