05 2019 档案

摘要:问题描述:求1+2+3+...+n,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。 题解:采用递归算法,利用短路机制来解决终止条件的问题 阅读全文
posted @ 2019-05-24 21:32 起点菜鸟 阅读(351) 评论(0) 推荐(0)
摘要:Problem description: Given an integer array A, you partition the array into (contiguous) subarrays of length at most K. After partitioning, each subar 阅读全文
posted @ 2019-05-12 15:39 起点菜鸟 阅读(587) 评论(0) 推荐(0)