摘要:
#169 Majority Element Given an array of size n, find the majority element. The majority element is the element that appears more than⌊ n/2 ⌋ times. Yo 阅读全文
posted @ 2016-11-14 13:55
冯兴伟
阅读(282)
评论(0)
推荐(0)
摘要:
#122 Best Time to Buy and Sell Stock II Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to 阅读全文
posted @ 2016-11-14 13:54
冯兴伟
阅读(183)
评论(0)
推荐(0)
摘要:
#204 Count Primes Count the number of prime numbers less than a non-negative number, n. 题解:这道题如果对每个小于n的数都进行判断是否为素数并计数会超时,因此采用筛法来解这题。建一个数组,从2开始, 把其倍数小于 阅读全文
posted @ 2016-11-14 13:53
冯兴伟
阅读(185)
评论(0)
推荐(0)
摘要:
#121 Best Time to Buy and Sell Stock Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitte 阅读全文
posted @ 2016-11-14 13:51
冯兴伟
阅读(206)
评论(0)
推荐(0)
摘要:
#104 Maximum Depth of Binary Tree Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from th 阅读全文
posted @ 2016-11-14 13:50
冯兴伟
阅读(198)
评论(0)
推荐(0)
摘要:
文章为作者原创,未经许可,禁止转载。 -Sun Yat-sen University 冯兴伟 实验3:完整性语言 完整性语言实验包含3个实验项目,其中2个必修项目,1个选修项目。该实验的各个实验项目均为验证型实验项目。本次实验我选择的是实验3.1和实验3.3。 实验3.1 实体完整性实验 (1)实验 阅读全文
posted @ 2016-11-14 00:59
冯兴伟
阅读(1624)
评论(0)
推荐(0)
摘要:
文章为作者原创,未经许可,禁止转载。 -Sun Yat-sen University 冯兴伟 实验2:安全性语言 安全性实验包含两个实验项目,其中1个为必修,1个为选修。自主存取控制实验为设计型实验项目,审计实验为验证型实验项目,选做一个即可。 实验2.1 自主存取控制实验 (1)实验目的 掌握自主 阅读全文
posted @ 2016-11-14 00:48
冯兴伟
阅读(1325)
评论(0)
推荐(0)