- 博客(267)
- 资源 (6)
- 收藏
- 关注
原创 大瀑布
2016年2月27号的大瀑布要比想象的剧烈很多,TD 的最低点到了 3267,而我在3310以上平了十多手(丢失了头寸),这样的交易方法静让我赔的时候亏更多,赚的时候却达不到最大化感觉会有一次反弹至少到14.80,向上走的概率不大,向下的几率高于震荡的几率,14.80以上借机补空仓
2016-02-27 22:56:34
403
原创 332. Reconstruct Itinerary
class Solution {public: vector findItinerary(vector> tickets) { map> edge; for (int i = 0; i < tickets.size(); ++i) { string from = tickets[i].first; strin
2016-02-21 15:49:11
705
原创 234. Palindrome Linked List
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */class Solution {public: bool isPalin
2016-02-21 15:02:14
366
原创 334. Increasing Triplet Subsequence
class Solution {public: bool increasingTriplet(vector& nums) { int n = nums.size(); if (n < 3) { return false; } vector minimum(n); minimum[0]
2016-02-21 14:50:17
333
转载 [原创]《穷人的小孩难成功-走出人生负面循环》视野的继承与影
http://www.newsmth.net/nForum/#!article/ChildEducation/282932父辈的视野狭窄,看问题简单化。在他们左右孩子生活的许多年中,因为他们的简单化,导致孩子生活的空白、成长的空乏。 读书,自然有读出来的。有好的读书方法,也有不好的。学手艺、做工,也有做出来的。也有好的门路,也有不好的。 重点不是去做什么,而是不管做什么能不能把
2016-01-23 19:13:13
632
原创 择机平空单
26手的空单,平均价格在 3180,目前还是严重亏损状态,从图形上看,价格会有机会降低到 3178 以下,到时择机平空单,保留 10手空单吃递延费即可
2016-01-03 01:56:34
441
原创 不断上涨不断加空仓
历史惊人的相似,去年是不断下跌不断加买多纸银子,导致亏了好多钱,至今还亏着6000千多。而这两天的ag(T+D) 是不断上涨,我不断加空仓,真是可笑之极,空仓已有28手之多。势不利我,应找机会早日平仓
2015-12-22 09:23:44
452
原创 silver 空仓
比较成功的空单,赢回了上次多单的亏损,目前整体还是亏 5000 多,保持好状态,慢慢回报变盈利~平掉所有(3手)空单,落袋为安!
2015-11-07 11:51:11
296
原创 why not the search engine build index for special character
like the !== in javascript
2015-11-03 21:24:10
322
原创 空头发力,账面亏损变为盈利
序号 交易日期 交易时间 委托编号 成交单号 交易品种 交易类型 成交价格 成交数量(千克)1 2015-10-16 15:00:56 02002457552 201510160200071148 Ag(T+D) 卖出开仓 3413.00 元/千克 12 2015-10-21 20:08:21 02003657491 201510220200001571 Ag(T+D) 卖出开
2015-10-31 22:44:36
1262
原创 Play 1.2.x UnexpectedException ContinuationEnhancer on helpers.
After create a helloworld application, when run this application, I got the following errors@6n8pfb8n0Internal Server Error (500) for request GET /Oops: UnexpectedExceptionAn unexpected er
2015-08-25 10:48:05
1035
原创 leetcode 日经贴,python code -Different Ways to Add Parentheses
Different Ways to Add Parenthesesclass Solution {public: char gettoken(const string& s, int& pos, int& num) { int n = s.length(); while (pos < n && s[pos] == ' ') {
2015-08-11 20:19:59
280
原创 leetcode 日经贴,python code -Word Search II
Word Search IIstruct TrieNode { TrieNode (){ memset(next, 0, sizeof(next)); id = -1; count = 0; } TrieNode* next[26]; int id, count;};class Solution {pu
2015-08-10 18:59:40
728
原创 leetcode 日经贴,Cpp code -Repeated DNA Sequences
Repeated DNA Sequencesclass Solution {public: int getnum(char ch) { int ret = 0; switch(ch) { case 'A': ret = 0; break; case 'C': ret = 1; break;
2015-08-10 14:46:17
305
原创 leetcode 日经贴,Cpp code -Dungeon Game
Dungeon Gamewrong many times, I should make a clear clue before write the code.class Solution {public: int calculateMinimumHP(vector>& dungeon) { int n = dungeon.size(); i
2015-08-10 11:29:26
360
原创 leetcode 日经贴,Cpp code -Binary Tree Preorder Traversal
Binary Tree Preorder Traversal/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NU
2015-08-05 16:40:48
324
原创 leetcode 日经贴,Cpp code -Search a 2D Matrix II
Search a 2D Matrix IIclass Solution {public: bool searchMatrix(vector>& matrix, int target) { int n = matrix.size(); if (n == 0) return false; int m = matrix[0].size()
2015-07-23 11:36:52
287
原创 redis file mapping
dynamic string: sds.h, sds.clist: adlist.h, adlist.cdict: dict.h, dict.c
2015-07-23 10:53:28
315
原创 leetcode 日经贴,Cpp code -Sliding Window Maximum
Sliding Window Maximumclass Solution {public: vector maxSlidingWindow(vector& nums, int k) { deque > dq; int n = nums.size(); vector ans; if (k n) {
2015-07-20 22:00:26
313
原创 What's the difference between C++ and Python
In Principle1. C++ is a "statically typed" language, while Python is a "dynamically typed" language. In one case, the types of the main components of the set of instructions (the computer program)
2015-07-20 11:07:48
537
原创 Python: Convert UTC time-tuple to UTC timestamp
Python: Convert UTC time-tuple to UTC timestamptime.mktime(tuple): this function always returns the timestamp in local time.This is the inverse function of localtime(). Its argum
2015-07-17 14:40:43
774
原创 leetcode 日经贴,Cpp code -Product of Array Except Self
Product of Array Except Selfclass Solution {public: vector productExceptSelf(vector& nums) { int n = nums.size(); vector ret(n, 1); int rproduct = 1; for (int
2015-07-16 12:04:46
387
原创 leetcode 日经贴,Cpp code -Basic Calculator
Basic CalculatorBasic Calculator IIclass Solution {private: char op; int num, pos;public: int getpriority(char op, bool in=false) { int p = 0; switch(op)
2015-07-15 21:17:01
338
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人