上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 77 下一页
摘要: [抄题]: Given n processes, each process has a unique PID (process id) and its PPID (parent process id). Each process only has one parent process, but ma 阅读全文
posted @ 2018-08-22 11:33 苗妙苗 阅读(182) 评论(0) 推荐(0)
摘要: [抄题]: Design a Tic-tac-toe game that is played between two players on a n x n grid. You may assume the following rules: Example: [暴力解法]: 时间分析: 空间分析: [ 阅读全文
posted @ 2018-08-22 05:54 苗妙苗 阅读(388) 评论(0) 推荐(0)
摘要: [抄题]: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place 阅读全文
posted @ 2018-08-22 04:03 苗妙苗 阅读(149) 评论(0) 推荐(0)
摘要: [抄题]: Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. Note: A leaf is a node with no children. 阅读全文
posted @ 2018-08-21 23:08 苗妙苗 阅读(137) 评论(0) 推荐(0)
摘要: [抄题]: Given a positive 32-bit integer n, you need to find the smallest 32-bit integer which has exactly the same digits existing in the integer n and 阅读全文
posted @ 2018-08-21 21:50 苗妙苗 阅读(304) 评论(0) 推荐(0)
摘要: [抄题]: We are given an array asteroids of integers representing asteroids in a row. For each asteroid, the absolute value represents its size, and the 阅读全文
posted @ 2018-08-21 10:37 苗妙苗 阅读(254) 评论(0) 推荐(0)
摘要: [抄题]: Given a binary tree, find the largest subtree which is a Binary Search Tree (BST), where largest means subtree with largest number of nodes in i 阅读全文
posted @ 2018-08-20 05:18 苗妙苗 阅读(321) 评论(0) 推荐(0)
摘要: [抄题]: Given two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace character. Example 1: Input 阅读全文
posted @ 2018-08-13 21:02 苗妙苗 阅读(291) 评论(0) 推荐(0)
摘要: [抄题]: Given an array of n integers nums and a target, find the number of index triplets i, j, k with 0 <= i < j < k < n that satisfy the condition num 阅读全文
posted @ 2018-08-12 21:55 苗妙苗 阅读(156) 评论(0) 推荐(0)
摘要: [抄题]: Given two 1d vectors, implement an iterator to return their elements alternately. Example: Follow up: What if you are given k 1d vectors? How we 阅读全文
posted @ 2018-08-12 18:04 苗妙苗 阅读(263) 评论(0) 推荐(0)
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 77 下一页