摘要: [抄题]: Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node reference (possibly updated) 阅读全文
posted @ 2018-08-22 22:11 苗妙苗 阅读(387) 评论(0) 推荐(0)
摘要: [抄题]: Given an array w of positive integers, where w[i] describes the weight of index i, write a function pickIndex which randomly picks an index in p 阅读全文
posted @ 2018-08-22 21:17 苗妙苗 阅读(664) 评论(0) 推荐(0)
摘要: [抄题]: 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)