原创 leetcode 日經貼,Cpp code -Basic Calculator

Basic Calculator Basic Calculator II class Solution { private: char op; int num, pos; public: int get

原创 leetcode 日經貼,Cpp code -Search a 2D Matrix II

Search a 2D Matrix II class Solution { public: bool searchMatrix(vector<vector<int>>& matrix, int target) {

原创 Python: Convert UTC time-tuple to UTC timestamp

Python: Convert UTC time-tuple to UTC timestamp time.mktime(tuple): this function always returns the timestamp i

原创 繼續暴漲

又是一個大陽,看趨勢的能力還是比較弱啊,目前手裏只剩1000多克銀子了,看不到方向了

原创 leetcode 日經貼,Cpp code -Product of Array Except Self

Product of Array Except Self class Solution { public: vector<int> productExceptSelf(vector<int>& nums) {

原创 What's the difference between C++ and Python

In Principle 1. C++ is a "statically typed" language, while Python is a "d

原创 leetcode 日經貼,python code -Word Search II

Word Search II struct TrieNode { TrieNode (){ memset(next, 0, sizeof(next)); id = -1; cou

原创 銀子價格

貌似這波到頂了。。。。

原创 scalability system design

http://www.lecloud.net/tagged/scalability

原创 redis file mapping

dynamic string: sds.h, sds.c list: adlist.h, adlist.c dict: dict.h, dict.c 點贊 收藏 分享 文章舉報

原创 Play 1.2.x UnexpectedException ContinuationEnhancer on helpers.

After create a helloworld application, when run this application, I got the following errors @6n8pfb8n0 Internal Server

原创 leetcode 日經貼,Cpp code -Dungeon Game

Dungeon Game wrong many times, I should make a clear clue before write the code. class Solution { public: int ca

原创 leetcode 日經貼,Cpp code -Repeated DNA Sequences

Repeated DNA Sequences class Solution { public: int getnum(char ch) { int ret = 0; switch(ch) {

原创 leetcode 日經貼,Cpp code -Binary Tree Preorder Traversal

Binary Tree Preorder Traversal /** * Definition for a binary tree node. * struct TreeNode { * int val; *

原创 leetcode 日經貼,Cpp code -Sliding Window Maximum

Sliding Window Maximum class Solution { public: vector<int> maxSlidingWindow(vector<int>& nums, int k) { de