上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 50 下一页
摘要: The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elev 阅读全文
posted @ 2019-11-06 16:52 SteveYu 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Look-and-say sequence is a sequence of integers as the following: D, D1, D111, D113, D11231, D112213111, ... where D is in [0, 9] except 1. The (n+1)s 阅读全文
posted @ 2019-11-06 16:42 SteveYu 阅读(147) 评论(0) 推荐(0) 编辑
摘要: The basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicated is that some of the input n 阅读全文
posted @ 2019-11-06 16:28 SteveYu 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Scientific notation is the way that scientists easily handle very large numbers or very small numbers. The notation matches the regular expression [+- 阅读全文
posted @ 2019-11-06 14:58 SteveYu 阅读(119) 评论(0) 推荐(0) 编辑
摘要: People often have a preference among synonyms of the same word. For example, some may prefer "the police", while others may prefer "the cops". Analyzi 阅读全文
posted @ 2019-11-06 14:15 SteveYu 阅读(131) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <regex> using namespace std; int main() { string str; getline(cin,str); for(int i=0;i<str.length();i++) str[i]=tolower(st 阅读全文
posted @ 2019-11-06 13:25 SteveYu 阅读(315) 评论(0) 推荐(0) 编辑
摘要: A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published years 阅读全文
posted @ 2019-11-06 09:33 SteveYu 阅读(171) 评论(0) 推荐(0) 编辑
摘要: Spark(三)角色和搭建 [TOC] 一、Spark集群角色介绍 详见 "JerryLead" / "SparkInternals" ,他的图解介绍能清晰的讲清楚Spark集群 二、集群的搭建 2.1.架构(图片来源,Spark官网) 一个Driver Program含有一个SparkContex 阅读全文
posted @ 2019-11-05 09:55 SteveYu 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 数据库学习(四)——事务处理 @[toc] 一、事务简介 1.正常的commit,自动提交 2.rollback 3.事务的ACID特性 4.事务的特性中,哪个是最关键的? 所有特性,都是为了保证一致性,一致性是最终的追求。 一致性是通过原子性,隔离性,持久性保证的。 5.锁的机制: 为了解决并发访 阅读全文
posted @ 2019-11-04 13:44 SteveYu 阅读(438) 评论(0) 推荐(0) 编辑
摘要: 数据库学习(三)多表联查 @[toc] 一、99语法 Oracle学习(二)中我们学习了92语法,现在我们学习一下99语法 sql 1999语法 1.1.cross join 笛卡尔积 1.2.natural join 自然连接 当两个表不具有相同列名,进行cross join,具有相同列名,自动匹 阅读全文
posted @ 2019-11-03 00:06 SteveYu 阅读(574) 评论(0) 推荐(0) 编辑
摘要: Spark(二)算子讲解 @[toc] 一、wordcountcount 基于上次的wordcount,我们来写一个wordcountcount,来对wc程序进行第二次计数,我们来分析一下性能。 通过性能图,我们可以知道: 1.Spark如果不对其结果进行存储或输出,那么Spark将不会处理map或 阅读全文
posted @ 2019-10-28 14:04 SteveYu 阅读(595) 评论(0) 推荐(0) 编辑
摘要: Oracle 安装步骤 [TOC] 一、安装流程 解压oracle 11g两个压缩文件 点击安装,修改目录,新建一个文件夹,叫oracle,复制进去,其他不用修改,直接安装 VSS Writer停用,手动 RecoveryService 停用,手动 Listener和Orcl都是手动 二、登录流程 阅读全文
posted @ 2019-10-27 12:03 SteveYu 阅读(528) 评论(0) 推荐(0) 编辑
摘要: [TOC] AVL Tree精讲专题 前言 因为AVL树之前写过一次,但是感觉左右旋转弄反了,这次重新整理了下,参照数据结构——陈越著,分别进行列举c++版本的AVL树和Java版本的AVL树,供参考和互相学习。图片来源,我们老师的PPT。 一、AVL Tree for CPP(Coding) 1. 阅读全文
posted @ 2019-10-21 16:52 SteveYu 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 小明 PAT 考了满分,高兴之余决定发起微博转发抽奖活动,从转发的网友中按顺序每隔 N 个人就发出一个红包。请你编写程序帮助他确定中奖名单。 输入格式: 输入第一行给出三个正整数 M(≤ 1000)、N 和 S,分别是转发的总量、小明决定的中奖间隔、以及第一位中奖者的序号(编号从 1 开始)。随后 阅读全文
posted @ 2019-10-20 18:47 SteveYu 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 给定一段一段的绳子,你需要把它们串成一条绳。每次串连的时候,是把两段绳子对折,再如下图所示套接在一起。这样得到的绳子又被当成是另一段绳子,可以再次对折去跟另一段绳子串连。每次串连后,原来两段绳子的长度就会减半。 给定 N 段绳子的长度,你需要找出它们能串成的绳子的最大长度。 输入格式: 每个输入包含 阅读全文
posted @ 2019-10-20 18:22 SteveYu 阅读(197) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 50 下一页