- 博客(3)
- 收藏
- 关注
原创 lintcode :expression expand using C++
Given an expression s includes numbers, letters and brackets. Number represents the number of repetitions inside the brackets(can be a string or another expression).Please expand expression to be a str
2017-07-28 10:17:43 494
原创 LintCode 376 Binary Tree Path sum
LintCode 376 Binary Tree Path sum ExampleGiven a binary tree, and target = 5: 1 / \ 2 4 / \ 2 3return[ [1, 2, 2], [1, 4] ]/** * Definition of TreeNode: * class TreeNode { * public:
2017-07-19 15:38:29 416
原创 Lintcode Add Two Numbers II
ExampleGiven 6->1->7 + 2->9->5. That is, 617 + 295.Return 9->1->2. That is, 912./** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int
2017-07-19 15:34:55 356
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人