上一页 1 ··· 10 11 12 13 14

2018年9月17日

摘要: An important task when processing arithmetic expressions is to mach delimiters. We can use Stack to solve this problem. 阅读全文
posted @ 2018-09-17 12:36 chiyeung 阅读(93) 评论(0) 推荐(0) 编辑
摘要: We can realize a Stack as an adaptation of a Python List. S.push(e)=L.append(e) S.pop()=L.pop() S.top()=L[-1] S.len()=len(L) S.is_empty=(len(L)==0) 阅读全文
posted @ 2018-09-17 12:32 chiyeung 阅读(98) 评论(0) 推荐(0) 编辑

2018年9月16日

摘要: Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A. You may re 阅读全文
posted @ 2018-09-16 12:25 chiyeung 阅读(149) 评论(0) 推荐(0) 编辑

2018年9月15日

摘要: You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in Sis a type of stone 阅读全文
posted @ 2018-09-15 12:51 chiyeung 阅读(201) 评论(0) 推荐(0) 编辑
摘要: def good_fibonacci(n): if n<=1: return (n,0) else: (a,b)=good_fibonacci(n-1) return (a+b,a) 阅读全文
posted @ 2018-09-15 09:17 chiyeung 阅读(87) 评论(0) 推荐(0) 编辑

2018年8月24日

摘要: Problem Description: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that eac 阅读全文
posted @ 2018-08-24 22:49 chiyeung 阅读(133) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14

导航