#include #include #include #include using namespace std;vector* > paths;class Node {public: vector child; int weight; Node(int w = 0) : weigh...
分类:
其他好文 时间:
2014-11-08 13:25:50
阅读次数:
110
Same TreeGiven two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally ide...
分类:
其他好文 时间:
2014-11-08 00:47:33
阅读次数:
151
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:
其他好文 时间:
2014-11-08 00:46:40
阅读次数:
131
Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical an...
分类:
其他好文 时间:
2014-11-06 19:07:13
阅读次数:
205
Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the origi...
分类:
其他好文 时间:
2014-11-06 14:30:36
阅读次数:
151
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:
其他好文 时间:
2014-11-02 07:03:37
阅读次数:
177
# 145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145.# Find the sum of all numbers which are equal to the sum of the factorial of their dig...
分类:
编程语言 时间:
2014-10-30 19:03:14
阅读次数:
209
Recently Yaghoub is playing a new trick to sell some more. When somebody gives him A Tomans,
he who never has appropriate changes, asks for B Tomans such that lowest common multiple of A and B equal...
分类:
其他好文 时间:
2014-10-29 21:35:13
阅读次数:
253
Operator Description= Equal or != Not equalGreater than=Greater than or equalANYCompares one value with any value in a listALL Compares one value with...
分类:
数据库 时间:
2014-10-29 19:14:00
阅读次数:
138