自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

flx413的博客

我只想搞懂我现在学的东西

  • 博客(26)
  • 资源 (5)
  • 问答 (23)
  • 收藏
  • 关注

原创 LeetCode-303. Range Sum Query - Immutable

Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.Example:Given nums = [-2, 0, 3, -5, 2, -1]sumRange(0, 2) -> 1sumRange(2, 5) -> -1sumRan

2016-10-31 22:57:07 279

原创 LeetCode-168. Excel Sheet Column Title

Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 -> AB class S

2016-10-31 17:48:46 253

原创 LeetCode-414. Third Maximum Number

Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexity must be in O(n).Example 1:Input: [3, 2,

2016-10-31 17:18:13 329

原创 L1-023

给定一个长度不超过10000的、仅由英文字母构成的字符串。请将字符重新调整顺序,按“GPLTGPLT....”这样的顺序输出,并忽略其它字符。当然,四种字符(不区分大小写)的个数不一定是一样多的,若某种字符已经输出完,则余下的字符仍按GPLT的顺序打印,直到所有字符都被输出。输入格式:输入在一行中给出一个长度不超过10000的、仅由英文字母构成的非空字符串。输出格式:

2016-10-30 23:17:24 2758

原创 LeetCode-404. Sum of Left Leaves

Find the sum of all left leaves in a given binary tree.Example: 3 / \ 9 20 / \ 15 7There are two left leaves in the binary tree, with values 9 and 15 respectively. Return 24

2016-10-30 21:58:27 315

原创 GPLT-L2-015. 互评成绩

学生互评作业的简单规则是这样定的:每个人的作业会被k个同学评审,得到k个成绩。系统需要去掉一个最高分和一个最低分,将剩下的分数取平均,就得到这个学生的最后成绩。本题就要求你编写这个互评系统的算分模块。输入格式:输入第一行给出3个正整数N(34,学生总数)、k(3输出格式:按非递减顺序输出最后得分最高的M个成绩,保留小数点后3位。分数间有1个空格,行首尾不得有多余空格

2016-10-29 10:39:16 740

原创 LeetCode-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.You may assume that the array is non-empty and the majority element

2016-10-28 11:21:08 320

原创 LeetCode-206. Reverse Linked List

链表逆转/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */class Solution {public: ListNo

2016-10-27 13:22:59 350

原创 LeetCode-237. Delete Node in a Linked List

Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is 1 -> 2 -> 3 -> 4 and you are given the third node with val

2016-10-27 09:25:57 239

原创 LeetCode-349. Intersection of Two Arrays

Given two arrays, write a function to compute their intersection.Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2].Note:Each element in the result must be unique.The res

2016-10-27 09:12:26 358

原创 PAT(A) - 1014. Waiting in Line (30)

Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules for the customers to wait in line are:The s

2016-10-21 00:12:04 343

原创 LeetCode-412. Fizz Buzz

Write a program that outputs the string representation of numbers from 1 to n.But for multiples of three it should output “Fizz” instead of the number and for the multiples of five output “Buzz”.

2016-10-19 19:29:01 302

原创 LeetCode - 1. Two Sum

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.Example:Given nums =

2016-10-19 19:19:08 203

原创 PAT(A) - 1060. Are They Equal (25)

If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0.123*105 with simple chopping. Now given the number of significa

2016-10-15 18:48:29 336

原创 PAT(A) - 1018. Public Bike Management (30)

There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the world. One may rent a bike at any station and return it to any other stations in the

2016-10-14 12:38:49 380

原创 PAT(A) - 1038. Recover the Smallest Number (30)

Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given {32, 321, 3214, 0229, 87}, we can recover many numbers such like 32-321-3214-0229-8

2016-10-13 09:41:56 318

原创 PAT(A) - 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 times.Now given a resu

2016-10-13 09:36:44 481

原创 PAT(A) - 1078. Hashing (25)

The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. The hash function is defined to be "H(key) = key %

2016-10-10 22:04:39 487

转载 VS2010中文注释带红色下划线的解决方法

环境:Visual Studio 2010问题:代码中出现中文后会带下划线,很多时候感觉很不舒服。找了很久的原因没找到,后来无意中在VisualAssist X里找到了解决办法。1.安装完Visual Assist X后会在VS2010的菜单栏出现VAssistX这个选项,单击展开,选择Visual AssistX Options;2.把如图所示的勾去掉

2016-10-10 21:47:14 568

原创 PAT(A) - 1087. All Roads Lead to Rome (30)

Indeed there are many different tourist routes from our city to Rome. You are supposed to find your clients the route with the least cost while gaining the most happiness.Input Specification:E

2016-10-10 20:47:25 431

原创 PAT(A) - 1096. Consecutive Factors (20)

Among all the factors of a positive integer N, there may exist several consecutive numbers. For example, 630 can be factored as 3*5*6*7, where 5, 6, and 7 are the three consecutive numbers. Now given

2016-10-10 19:05:36 269

原创 PAT(A) - 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 to know the size of each f

2016-10-09 19:02:23 283

原创 PAT(A) - 1030. Travel Plan (30)

A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a program to help a traveler to decide the shortest path b

2016-10-07 21:34:44 448

原创 PAT(A) - 1076. Forwards on Weibo (30)

Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social network is formed with followers relations. When a

2016-10-07 17:16:36 341

原创 PAT(A) - 1080. Graduate Admission (30)

It is said that in 2013, there were about 100 graduate schools ready to proceed over 40,000 applications in Zhejiang Province. It would help a lot if you could write a program to automate the admissio

2016-10-06 11:43:53 320

转载 POJ题目分类(各种分类合集)

初期:一.基本算法:     (1)枚举. (poj1753,poj2965)     (2)贪心(poj1328,poj2109,poj2586)     (3)递归和分治法.     (4)递推.     (5)构造法.(poj3295)     (6)模拟法.(poj1068,poj2632,poj1573,poj2993,poj2996)二.图算法: 

2016-10-05 11:35:41 555

实战突击:Visual C++项目开发案例整合.pdf

本书以局域网监控系统、快乐五子棋、图像处理系统、餐饮管理系统、客房管理系统、工资管理系统、指纹考勤管理系统、合同管理系统、客户资源管理系统、资产设备管理系统、仓库管理系统、商品采购管理系统、商品销售管理系统、超市进销存管理系统、物流综合管理系统、汽配管理系统、学生管理系统、图书管理系统、文档管理系统、智能大厦自动报警系统、企业内部通信系统等21个实际项目开发程序为案例,从软件工程的角度出发,按照项目的开发顺序,系统、全面地介绍了程序的开发流程。从开发背景、需求分析、系统功能分析、数据库分析、数据库结构、系统开发到系统的编译发行,每一过程都进行了详细的介绍。

2018-07-05

VS2015的OpenCV环境

VS2015的OpenCV环境配置,用于Windows平台,经过cmake编译的,解压后在工程中配置即可使用

2018-07-05

利用Bmob + ImageLoader 加载网络图片

http://blog.csdn.net/flx413/article/details/77126706 有详细说明

2017-08-13

SDL入门学习

SDL的入门学习

2016-07-24

android studio java文件红色j如何解决

2016-08-01

关于校验手机号码问题

2016-07-17

OpenCV提取视频关键帧的算法

2016-05-08

OpenCV加载PNG图片,显示图片背景是黑色的?

2016-05-05

OpenCV如何给图片添加水印?

2016-05-05

利用OpenCV如何将一张图片替换掉已存在视频的某一桢位置上?

2016-05-04

ffmpeg提取视频某一帧,提取这一桢的图像进行加密,如何将加密后的图像插入到原来的那一桢上?

2016-04-29

Xabber-Beta 主界面的侧滑菜单在哪个文件里?

2016-04-16

Error:Configuration with name 'default' not found.

2016-04-07

使用QT新建Designer Form对话框时没有生成对话框的.cpp和.h文件?

2016-03-31

Android Studio 安装Installing Build Tools失败

2016-03-31

Android Studio SDK需要安装哪些?

2016-03-31

如何用C语言将一个二值图(只有黑白)转换成一个01数字矩阵?

2016-03-30

Android Studio如何打开一个下载好的项目

2016-03-25

在做一个暴力破解密文的课设,如何快速地匹配文件中的单词?

2016-03-19

如何按住鼠标左键连续发送消息

2016-02-23

Windows编程如何监听鼠标是否被一直按下

2016-02-23

C++课程设计 有一个要求重载输入“>>”运算符,使得可以通过cin直接读入一个类的对象值??

2016-01-08

VC6.0 如何配置Nehe OpenGL SDK

2015-12-29

Android 用百度地图定位location.getAddrStr()得到的结果是null

2015-11-24

PAT1022 D进制的A+B 一个测试点不通过

2015-11-14

二叉树前序遍历算法改写

2015-11-11

非递归利用队列创建二叉树

2015-11-11

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

TA关注的人

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