2019年3月18日

小于等于给定值的最长子数组

摘要: 求数组中等于给定值的最长子数组 拓展一 一个数组中既有奇数又有偶数,求奇数和偶数个数相等的最长的子数组 将奇数记为-1,偶数记为1,题目转换为求数组中等于0的最长子数组 拓展二 阅读全文

posted @ 2019-03-18 22:45 tianzeng 阅读(276) 评论(0) 推荐(0)

大楼轮廓

摘要: Given N buildings in a x-axis,each building is a rectangle and can be represented by a triple (start, end, height),where start is the start position o 阅读全文

posted @ 2019-03-18 21:33 tianzeng 阅读(192) 评论(0) 推荐(0)

导航