摘要: 题目: In a row of seats, 1 represents a person sitting in that seat, and 0 represents that the seat is empty. 在一排座位中,1表示坐在该座位上的人,0表示座位是空的。 There is at l 阅读全文
posted @ 2018-09-03 19:49 chan_ai_chao 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary search tree (BST) with duplicates, find all the mode(s) (the most frequently occurred element) in the given BST. 给定具有重复项的二叉搜索树(BST) 阅读全文
posted @ 2018-09-03 16:38 chan_ai_chao 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array consisting of n integers, find the contiguous subarray of given length k that has the maximum average value. And you need to output 阅读全文
posted @ 2018-09-03 14:51 chan_ai_chao 阅读(89) 评论(0) 推荐(0) 编辑