摘要:
链表结点类型定义:1 class Node {2 public:3 int data = 0;4 Node *next = nullptr;5 6 Node(int d) {7 data = d;8 }9 };快行指针(runner)技巧:同时... 阅读全文
posted @ 2014-05-20 18:13
小菜刷题史
阅读(364)
评论(0)
推荐(0)
摘要:
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree andsum =... 阅读全文
posted @ 2014-05-20 12:31
小菜刷题史
阅读(148)
评论(0)
推荐(0)
摘要:
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe... 阅读全文
posted @ 2014-05-20 12:10
小菜刷题史
阅读(104)
评论(0)
推荐(0)
摘要:
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... 阅读全文
posted @ 2014-05-20 11:51
小菜刷题史
阅读(142)
评论(0)
推荐(0)

浙公网安备 33010602011771号