- 博客(14)
- 资源 (4)
- 收藏
- 关注
原创 solution Of Pat 1033. To Fill or Not to Fill (25)
1033. To Fill or Not to Fill (25)With highways available, driving a car from Hangzhou to any other city is easy. But since the tank capacity of a car is limited, we have to find gas stations on the way
2016-03-29 01:21:40 943
原创 solution Of Pat 1052. Linked List Sorting (25)
1052. Linked List Sorting (25)A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each structure contains an integer key and a Next pointer to
2016-03-26 22:39:22 307
原创 solution Of Pat 1021. Deepest Root (25)
1021. Deepest Root (25)A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the root that results in a high
2016-03-26 17:01:53 458
转载 进程间的几种通信方式
进程间通信就是在不同进程之间传播或交换信息,那么不同进程之间存在着什么双方都可以访问的介质呢?进程的用户空间是互相独立的,一般而言是不能互相访问的,唯一的例外是共享内存区。但是,系统空间却是“公共场所”,所以内核显然可以提供这样的条件。除此以外,那就是双方都可以访问的外设了。在这个意义上,两个进程当然也可以通过磁盘上的普通文件交换信息,或者通过“注册表”或其它数据库中的某些表项和记录交换信息。广义上
2016-03-25 21:20:22 2225
原创 solution Of Pat 1115. Counting Nodes in a BST (30)
1115. Counting Nodes in a BST (30)A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less tha
2016-03-24 20:47:35 798 1
原创 solution Of Pat 1114. Family Property (25)
1114. Family Property (25)This time, you are supposed to help us collect the data for family-owned property. Given each person’s family members, and the estate(房产)info under his/her own name, we need t
2016-03-24 16:49:44 926
转载 python基础数据类型及内置容器详解
转载并微调自:http://www.cnblogs.com/linjiqin/p/3608541.html基础数据类型字符串如何在Python中使用字符串:1、使用单引号或者双引号(‘、”) 用单引号括起来表示字符串,例如:str1='this is string'print str1str2="this is string"print str22、使用三引号(”’) 利用三引号,表示多行
2016-03-17 19:15:58 4109 1
原创 solution Of Pat 1113. Integer Set Partition (25)
1113. Integer Set Partition (25)Given a set of N (> 1) positive integers, you are supposed to partition them into two disjoint sets A1 and A2 of n1 and n2 numbers, respectively. Let S1 and S2 denote th
2016-03-16 21:08:51 640
原创 solutino Of Pat 1112. Stucked Keyboard (20)
1112. Stucked Keyboard (20)On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys will appear repeatedly on screen for k
2016-03-16 11:30:59 1135 2
原创 solution Of Pat 1111. Online Map (30)
1111. Online Map (30)Input our current position and a destination, an online map can recommend several paths. Now your job is to recommend two paths to your user: one is the shortest, and the other is
2016-03-15 17:50:43 2285
原创 solution Of Pat 1110. Complete Binary Tree (25)
1110. Complete Binary Tree (25) Given a tree, you are supposed to tell if it is a complete binary tree.Input Specification:Each input file contains one test case. For each case, the first line gives a
2016-03-15 12:03:59 1503
原创 solution Of Pat 1109. Group Photo (25)
1109.Group Photo (25)Formation is very important when taking a group photo. Given the rules of forming K rows with N people as the following:The number of people in each row must be N/K (round down to
2016-03-15 00:43:14 1039
原创 solution Of Pat1108. Finding Average (20)
1108. Finding Average (20) 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 numbers might not be leg
2016-03-14 12:55:02 802
原创 随机函数rand()和srand()(c++)
首先,我们首先明确一点:计算机的随机数都是由伪随机数,随机函数实际返回的是一个确定的循环数列的连续项。rand() 函数名: rand 功 能: 随机数发生器 用 法: int rand(void); 所在头文件: stdlib.h 函数说明 : rand()的内部实现是用线性同余法做的,它不是真的随机数,因其周期特别长,故在一定
2016-03-13 16:57:17 755
精通Scrapy网络爬虫
2019-03-14
21个项目玩转深度学习_基于TensorFlow的实践详解
2019-03-12
Python深度学习
2019-03-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人