I hereby claim:
- I am amorphobia on github.
- I am xuesong (https://keybase.io/xuesong) on keybase.
- I have a public key whose fingerprint is FC70 55C1 CB91 996D DB83 81A6 C17B DC00 7214 0DFD
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
class Solution { | |
public: | |
int ladderLength(string beginWord, string endWord, unordered_set<string>& wordList) { | |
// key: string with one of its charactor replaced by '-', e.g. "dog"->"d-g" | |
// value: vector of such strings | |
unordered_map<string, vector<string>> dict; | |
for (string s : wordList) { | |
for (int i = 0; i < s.length(); ++i) { | |
string k = s; |
#ifndef HASH_EXTENDED_H | |
#define HASH_EXTENDED_H | |
#include <unordered_map> | |
#include <unordered_set> | |
#include <algorithm> | |
namespace std { | |
template<typename T> struct hash<vector<T>> { | |
inline size_t operator() (const vector<T>& vec) const { |
[12:43:00.766][Program ][Info ] Version 1.11.1-beta13 (build: 3441) | |
[12:43:00.766][Program ][Info ] Starting on: 5/28/2016 12:43:00 PM | |
[12:43:00.782][Program ][Info ] Resources: C:\Program Files\Docker\Docker\Resources | |
[12:43:00.782][Program ][Info ] OS: Windows 10 Pro | |
[12:43:00.782][Program ][Info ] Edition: Professional | |
[12:43:00.782][Program ][Info ] Id: 1511 | |
[12:43:00.782][Program ][Info ] Build: 10586 | |
[12:43:00.782][Program ][Info ] BuildLabName: 10586.103.amd64fre.th2_release.160126-1819 | |
[12:43:00.797][Program ][Info ] Mixpanel Id: A629D857-B6EC-4723-99B7-7B40F8B766FE | |
[12:43:00.797][Program ][Info ] Sha1: 5307146e79f6a634960d05da93adc33cf602d1f1 |
#!/usr/bin/env python3 | |
from flask import Flask, jsonify | |
app = Flask(__name__) | |
tasks = [ | |
{ | |
'id': 1, | |
'title': u'Buy groceries', | |
'description': u'Milk, Cheese, Pizza, Fruit, Tylenol', | |
'done': False |
// # Ghost Configuration | |
// Setup your Ghost install for various [environments](http://support.ghost.org/config/#about-environments). | |
// Ghost runs in `development` mode by default. Full documentation can be found at http://support.ghost.org/config/ | |
var path = require('path'), | |
config; | |
config = { | |
// ### Production |