自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 资源 (3)
  • 收藏
  • 关注

原创 pta 6-11 求自定类型元素序列的中位数

问题描述本题要求实现一个函数,求N个集合元素A[]的中位数,即序列中第⌊N/2+1⌋大的元素。其中集合元素的类型为自定义的ElementType。其中给定集合元素存放在数组A[]中,正整数N是数组元素个数。该函数须返回N个A[]元素的中位数,其值也必须是ElementType类型。分析//先排序,再找第中间大的数。 //还有就是找到数组中第k大的数,一个叫做快速选择算法,

2018-01-24 10:37:18 4876 5

原创 pta 6-10 阶乘计算升级版

问题描述本题要求实现一个打印非负整数阶乘的函数。其中N是用户传入的参数,其值不超过1000。 如果N是非负整数,则该函数必须在一行中打印出N!的值,否则打印“Invalid input”分析这个题不能用int存结果。15就已经溢出了。用数组存数。代码#include void Print_Factorial ( const int N ){ i

2018-01-24 10:22:51 1774

原创 LeetCode problem 4. Median of Two Sorted Arrays

问题描述There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). 找中间数字。例子

2018-01-16 18:53:23 190

原创 LeetCode problem 3. Longest Substring Without Repeating Characters

问题描述Given a string, find the length of the longest substring without repeating characters. (找出最长的没有重复字母出现的子串。输出其最长长度。)例子Given “abcabcbb”, the answer is “abc”, which the length is 3.

2018-01-16 18:39:20 179

原创 LeetCode problem 2. Add Two Numbers

问题描述You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and re

2018-01-16 18:21:27 284

原创 LeeCode problem 1. Two Sum

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 each input would have exactly one solution, and

2018-01-16 18:08:59 208

kaggle-dataset sentiment-analysis-on-movie-reviews

The Rotten Tomatoes movie review dataset包含train.tsv >8M和test.tsv >3M两个文件 kaggle下载地址: https:// www.kaggle.com/c/sentiment analysis on movie reviews/data 分类标签如下: 0 negative 1 somewhat negative 2 neutral 3 somewhat positive 4 positive

2020-08-05

baike_spider.zip

博文对应的代码 https://blog.csdn.net/efine_dxq/article/details/90736671

2020-04-29

etc目录详解

Linux,etc目录为配置文件目录,基本上硬件和软件配置文件都在此目录下。 adjtime---包括了调整硬件时钟的数据 aliases---包含了linux邮件服务所有的分发列表 bashre---为shell用户设置系统范围的缺省设置。(缺省情况下,它的设置shell提示符包含当前用户名,主机名,当前目录和其他值) cdrecord.conf---包含了刻录cd所用的缺省值 crontab---设置cron环境变量和运行自动任务的时间 csh.cshrc(或cshre)---csh(c shell) 用户设置系统范围的缺省值 explrts---包含了本地目录的列表,这些目录可被使用网络文件系统

2017-01-18

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除