摘要: You are starving and you want to eat food as quickly as possible. You want to find the shortest path to arrive at any food cell. You are given an m x 阅读全文
posted @ 2021-08-29 09:41 苗妙苗 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Given the postfix tokens of an arithmetic expression, build and return the binary expression tree that represents this expression. Postfix notation is 阅读全文
posted @ 2021-08-29 08:33 苗妙苗 阅读(78) 评论(0) 推荐(0) 编辑
摘要: You have a queue of integers, you need to retrieve the first unique integer in the queue. Implement the FirstUnique class: FirstUnique(int[] nums) Ini 阅读全文
posted @ 2021-08-29 07:48 苗妙苗 阅读(62) 评论(0) 推荐(0) 编辑
摘要: You have some number of sticks with positive integer lengths. These lengths are given as an array sticks, where sticks[i] is the length of the ith sti 阅读全文
posted @ 2021-08-29 03:33 苗妙苗 阅读(51) 评论(0) 推荐(0) 编辑
摘要: You are given two string arrays username and website and an integer array timestamp. All the given arrays are of the same length and the tuple [userna 阅读全文
posted @ 2021-08-29 02:55 苗妙苗 阅读(38) 评论(0) 推荐(0) 编辑
摘要: There are n cities labeled from 1 to n. You are given the integer n and an array connections where connections[i] = [xi, yi, costi] indicates that the 阅读全文
posted @ 2021-08-29 01:45 苗妙苗 阅读(60) 评论(0) 推荐(0) 编辑
摘要: Given the root of a binary tree, return the maximum average value of a subtree of that tree. Answers within 10-5 of the actual answer will be accepted 阅读全文
posted @ 2021-08-29 00:52 苗妙苗 阅读(94) 评论(0) 推荐(0) 编辑