摘要: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple 阅读全文
posted @ 2019-03-26 16:37 xuyy_isee 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction 阅读全文
posted @ 2019-03-26 16:21 xuyy_isee 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Given a binary string S (a string consisting only of '0' and '1's) and a positive integer N, return true if and only if for every integer X from 1 to 阅读全文
posted @ 2019-03-25 21:08 xuyy_isee 阅读(173) 评论(0) 推荐(0) 编辑
摘要: Given an array A of positive integers, A[i] represents the value of the i th sightseeing spot, and two sightseeing spots i and j have distance j i bet 阅读全文
posted @ 2019-03-25 21:02 xuyy_isee 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer K, you need find the smallest positive integer N such that N is divisible by K, and N only contains the digit 1. Return the l 阅读全文
posted @ 2019-03-25 20:48 xuyy_isee 阅读(182) 评论(0) 推荐(0) 编辑
摘要: Given an array A of integers, return true if and only if we can partition the array into three non empty parts with equal sums. Formally, we can parti 阅读全文
posted @ 2019-03-25 19:59 xuyy_isee 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Apache Hadoop YARN是一种新的Hadoop资源管理器,主要部件为resource manager和node manager。resource manager使用有限状态机维护有状态对象的生命周期。 RmAppAttempt是resource manager中用于维护一个 阅读全文
posted @ 2019-03-20 23:43 xuyy_isee 阅读(2054) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 输入一个字符串(不含空格), 请寻找输入中包含所有蛇形字符串。 蛇形字符串定义: 1.蛇形字符串由连续字符对组成,其特点如下: 1.1 字符对定义:字符对由同一字母的大写和小写组成(前大后小)。如:Aa,Dd; 1.2 蛇形字符串中包含的字符对,必须是连续字母,并按照字母顺序排序。如:A 阅读全文
posted @ 2019-03-20 22:14 xuyy_isee 阅读(4484) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 要开发一款教育类App,帮助幼儿在识数阶段做一百以内自然数[0,99]的加减法。 屏幕上会显示“1”“2”“3”“4”“5”“6”“7”“8”“9”“0”“+”“ ”“=”这些按钮,用户在按了若干按钮之后,如果按了“=”,则会把按“=”之前的字符作为一个算式,计算结果。 中间结果或最后结 阅读全文
posted @ 2019-03-20 21:39 xuyy_isee 阅读(3937) 评论(0) 推荐(0) 编辑
摘要: 扑克牌游戏大家应该都比较熟悉了,一副牌由54张组成,含3~A,2各4张,小王1张,大王1张。牌面从小到大用如下字符和字符串表示(其中,小写joker表示小王,大写JOKER表示大王):) 3 4 5 6 7 8 9 10 J Q K A 2 joker JOKER 输入两手牌,两手牌之间用“ ”连接 阅读全文
posted @ 2019-03-20 11:24 xuyy_isee 阅读(1260) 评论(0) 推荐(0) 编辑