摘要: 二分查找: 阅读全文
posted @ 2016-11-20 13:00 冯兴伟 阅读(1026) 评论(0) 推荐(0)
摘要: 伪代码: Java代码实现: 阅读全文
posted @ 2016-11-20 12:59 冯兴伟 阅读(702) 评论(0) 推荐(0)
摘要: 文章为作者原创,未经许可,禁止转载。 -Sun Yat-sen University 冯兴伟 实验4 触发器 (1)实验目的 掌握数据库触发器的设计和使用方法 (2)实验内容和要求 定义BEFORE触发器和AFTER触发器。能够理解不同类型触发器的作用和执行原理,验证触发器的有效性。 (3)实验重点 阅读全文
posted @ 2016-11-18 01:18 冯兴伟 阅读(85472) 评论(1) 推荐(3)
摘要: 文章为作者原创,未经许可,禁止转载。 -Sun Yat-sen University 冯兴伟 一、 项目简介: 电子商务的发展以及电商平台的多样化,类似于京东和天猫这种拥有过亿用户的在线购物网站,每天要处理的订单数堪称海量,更别提最近的双十一购物节,如此海量的订单数据阿里巴巴和京东是如何准确将用户信 阅读全文
posted @ 2016-11-17 01:41 冯兴伟 阅读(1453) 评论(0) 推荐(0)
摘要: #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)
摘要: 文章为作者原创,未经许可,禁止转载。 -Sun Yat-sen University 冯兴伟 实验1.1 数据库定义 (1)实验目的 理解和掌握数据库DDL语言,能够熟练地使用SQL DDL语句创建、修改和删除数据库、模式和基本表。 (2)实验内容和要求 理解和掌握SQL DDL语句的语法,特别是各 阅读全文
posted @ 2016-11-13 15:59 冯兴伟 阅读(6031) 评论(0) 推荐(0)