摘要:
Given a string that contains only digits 0-9 and a target value, return all possibilities to add binary operators (not unary) +, -, or * between the d 阅读全文
摘要:
题目 给定一个无向图的节点,克隆能克隆的一切 思路 以上图为例, node neighbor 1 2, 3 2 1 3 1, 5 5 3 首先从1开始, 将(node,newNode)put到HashMap中 node newNode 1 1 然后遍历该node的所有neighbor node ne 阅读全文
摘要:
Given a binary tree, collect a tree's nodes as if you were doing this: Collect and remove all leaves, repeat until the tree is empty. Example: Explana 阅读全文
摘要:
Given two sparse matrices A and B, return the result of AB. You may assume that A's column number is equal to B's row number. Example: 注意: 搞清楚何谓matrix 阅读全文