Fork me on GitHub
摘要: Invert a binary tree. 4 / \ 2 7 / \ / \ 1 3 6 9 to 4 / \ 7 2 / \ / \ 9 6 3 1 Trivia: This problem was inspired by this original tweet by Max Howell: G 阅读全文
posted @ 2017-05-17 21:14 hellowOOOrld 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one cha 阅读全文
posted @ 2017-05-17 17:32 hellowOOOrld 阅读(415) 评论(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 may have 阅读全文
posted @ 2017-05-17 08:38 hellowOOOrld 阅读(352) 评论(0) 推荐(0) 编辑