摘要: You are given an integer array cost where cost[i] is the cost of ith step on a staircase. Once you pay the cost, you can either climb one or two steps 阅读全文
posted @ 2020-11-10 02:24 CNoodle 阅读(138) 评论(0) 推荐(0)
摘要: Given the root of a binary tree, find the maximum value v for which there exist different nodes a and b where v = |a.val - b.val| and a is an ancestor 阅读全文
posted @ 2020-11-10 01:08 CNoodle 阅读(200) 评论(0) 推荐(0)