Graph
cai_yt_
这个作者很懒,什么都没留下…
展开
-
Algorithms(三)Evaluate Division
题目: Evaluate Division Equations are given in the format A / B = k, where A and B are variables represented as strings, and k is a real number (floating point number). Given some queries, retu原创 2017-09-24 14:24:23 · 214 阅读 · 0 评论 -
Algorithms(四)Employee Importance
题目: Employee Importance You are given a data structure of employee information, which includes the employee's unique id, his importance value and his direct subordinates' id. For example, e原创 2017-10-01 17:30:08 · 146 阅读 · 0 评论 -
Algorithms(六)Best Time to Buy and Sell Stock II
题目: 122. Best Time to Buy and Sell Stock II Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comp原创 2017-12-29 00:17:57 · 140 阅读 · 0 评论 -
Algorithms(七)Single Number
题目: 136. Single Number Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you原创 2018-01-05 15:39:33 · 163 阅读 · 0 评论