摘要: Objective: Given ‘N’ windows where each window contains certain number of tickets at each window. Price of a ticket is equal to number of tickets rema 阅读全文
posted @ 2018-09-23 16:23 轻风舞动 阅读(450) 评论(0) 推荐(0) 编辑
摘要: Given two sparse matrices A and B, return the result of AB. You may assume that A's column number is equal to B's row number. Example: 给2个稀疏矩阵,返回矩阵相乘的 阅读全文
posted @ 2018-09-23 15:32 轻风舞动 阅读(1817) 评论(0) 推荐(0) 编辑
摘要: In a given array nums of positive integers, find three non-overlapping subarrays with maximum sum. Each subarray will be of size k, and we want to max 阅读全文
posted @ 2018-09-23 14:36 轻风舞动 阅读(601) 评论(0) 推荐(0) 编辑
摘要: A frog is crossing a river. The river is divided into x units and at each unit there may or may not exist a stone. The frog can jump on a stone, but i 阅读全文
posted @ 2018-09-23 08:07 轻风舞动 阅读(1283) 评论(0) 推荐(0) 编辑
摘要: Given an array A (index starts at 1) consisting of N integers: A1, A2, ..., AN and an integer B. The integer Bdenotes that from any place (suppose the 阅读全文
posted @ 2018-09-23 07:55 轻风舞动 阅读(886) 评论(0) 推荐(0) 编辑