自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

菜头

生活没有压力 只有选择

  • 博客(22)
  • 资源 (33)
  • 收藏
  • 关注

原创 Reverse Integer

https://leetcode.com/problems/reverse-integer/Reverse digits of an integer.Example1: x = 123, return 321 Example2: x = -123, return -321Have you thought about this? Here are some good questions to as

2016-07-28 22:51:45 347

原创 String to Integer (atoi)

https://leetcode.com/problems/string-to-integer-atoi/Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below

2016-07-28 22:37:11 504

原创 Missing Number

https://leetcode.com/problems/missing-number/Given an array containing n distinct numbers taken from 0, 1, 2, …, n, find the one that is missing from the array.For example, Given nums = [0, 1, 3] retu

2016-07-27 00:42:33 333

原创 Single Number

https://leetcode.com/problems/single-number/Given an array of integers, every element appears twice except for one. Find that single one.Note: Your algorithm should have a linear runtime complexity. C

2016-07-27 00:28:02 297

原创 Reverse Bits

Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as 00111001011110

2016-07-24 22:31:40 427

原创 GNU make - functions

$(function-name arg1 [, argn ])#String Functions1. $(filter pattern…,text)words := he the hen other the% get-the: @echo he matches: (filterhe,(filter he, (words)) @echo %he matches: (filter(

2016-07-24 11:24:15 414

原创 Ugly Number

https://leetcode.com/problems/ugly-number/Write a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 6, 8

2016-07-24 10:44:42 285

原创 Power of Three

https://leetcode.com/problems/power-of-three/Given an integer, write a function to determine if it is a power of three.Follow up: Could you do it without using any loop / recursion?3的次方数没有显著的特点,最直接的方法

2016-07-24 10:25:35 265

原创 Power of Four

https://leetcode.com/problems/power-of-four/Given an integer (signed 32 bits), write a function to check whether it is a power of 4.Example: Given num = 16, return true. Given num = 5, return false.Fo

2016-07-24 10:17:10 309

原创 Add Binary

https://leetcode.com/problems/add-binary/Given two binary strings, return their sum (also a binary string).For example, a = “11” b = “1” Return “100”.计算过程类似Verilog的全加器。char* addBinary(char* a, char*

2016-07-23 17:48:48 307

原创 Counting Bits

https://leetcode.com/problems/counting-bits/Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1’s in their binary representation and return t

2016-07-23 16:26:42 273

原创 Number of 1 Bits

https://leetcode.com/problems/number-of-1-bits/Write a function that takes an unsigned integer and returns the number of ’1’ bits it has (also known as the Hamming weight).For example, the 32-bit integ

2016-07-23 14:57:53 246

原创 Power of Two

https://leetcode.com/problems/power-of-two/Given an integer, write a function to determine if it is a power of two.数字 2^n 是大于0的,而且等于1左移n位得到的数字,所以2^n与2^n-1 相与运算得到0.bool isPowerOfTwo(int n) { if(n <=

2016-07-23 14:37:52 271

原创 Contains Duplicate II

https://leetcode.com/problems/contains-duplicate-ii/Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the

2016-07-23 14:05:53 347

原创 Contains Duplicate

https://leetcode.com/problems/contains-duplicate/Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array

2016-07-23 12:24:23 340

原创 Intersection of Two Arrays

https://leetcode.com/problems/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 el

2016-07-23 11:44:46 332

原创 Move Zeroes

https://leetcode.com/problems/move-zeroes/Given an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non-zero elements.For example, given nums =

2016-07-23 00:24:56 280

原创 Invert Binary Tree

https://leetcode.com/problems/invert-binary-tree/Invert a binary tree.4 / \ 2 7 / \ / \ 1 3 6 9 to 4 / \ 7 2 / \ / \ 9 6 3 1给出一棵二叉树,求这棵二叉树的镜像。搬运九章上的实现

2016-07-22 23:46:38 294

原创 Maximum Depth of Binary Tree

https://leetcode.com/problems/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 the root node down to the far

2016-07-22 23:21:30 396

原创 Add Digits

https://leetcode.com/problems/add-digits/Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example:Given num = 38, the process is like: 3 + 8 = 11,

2016-07-22 00:35:07 299

原创 sum of two integers

https://leetcode.com/problems/sum-of-two-integers/Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -.Example: Given a = 1 and b = 2, return 3.注释,这个题目有意思,学过F

2016-07-21 23:46:05 322

原创 reverse string

https://leetcode.com/problems/reverse-string/Write a function that takes a string as input and returns the string reversed.Example: Given s = “hello”, return “olleh”.1.char* reverseString(char* s) {

2016-07-21 23:09:37 276

C/C++模糊控制

C/C++模糊控制接口文件,在VS2010+MFC环境测试可用

2013-01-02

桌面宠物猫咪

桌面宠物猫fafa

2012-12-18

skiplist 跳表C++实现

skiplist 跳表C++实现,资料参考 en.wikipedia.org/wiki/Skip_list

2012-10-08

两个C++毫秒级定时类

两个C++毫秒级定时类

2012-09-26

SSE指令集测试程序

SSE指令集的介绍网上一大堆, 这里贴一个用VS2008环境下的SSE测试程序, 分别用C++代码, C++内联汇编, C++的SSE Intrinsics三种方式计算卷积的程序...这是一个win32控制台程序.....

2012-09-26

KeyHook钩子

DLl文件封装的低级键盘钩子.

2012-09-14

C++加密工具

Rijndael加密算法, SHA-256.

2012-09-12

myBase个人资料管理软件

个人信息管理软件

2012-09-04

源代码行数统计工具

源代码行数统计工具。

2012-08-02

MFC可以编辑的标签控件CStatic

对前面的改进了,可以编辑的标签控件CStatic,可以使编辑框,组合框,也可以是一个CDateTimeCtrl用来选择时间

2012-07-24

MFC略缩图控件

MFC略缩图控件,列表框自绘,VS2008+sp1编译。

2012-04-23

label CStatic

这是一个可以编辑的CStatic控件

2012-03-30

cadlib2.1的二次开发

dxf文件读取

2012-03-14

dxf文件读取

dxf文件读取

2012-03-14

cadlib2.1二次开发读取dxf文件,显示图形与数据

cadlib2.1二次开发读取dxf文件,显示图形与数据

2012-03-14

cadlib 2.1的二次开发读取DXF的小软件,带源码

cadlib 2.1的二次开发读取DXF的小软件,带源码,介绍见这儿

2012-03-14

ezVidCap.ocx控件,用于VB的视频

ezVidCap VB 控件,,,,,,,,,,,

2011-07-03

Gauss解线性方程组

本人的MATLAB R2009b作业,Gauss解线性方程组的,有三个算法在这个M文件里面

2010-11-16

VB仿制Windows图画程序

VB仿制Windows图画程序,界面模仿的很好,很想,只是部分功能没有实现,如画曲线,不知道是不是用PolyBezier函数来画,例外就是移动任意形状的图片区域没有实现,但矩形区域移动实现了,可以用鼠标任意拖动图片块,吐血推荐,代码很认真写的,可阅读性强,

2010-11-14

功能强大的图像处理系统

本软件是VB写的图像处理软件,旋转,剪裁等基本操作都包括,例外还有很多滤镜功能实现,值得一看。

2010-04-25

OpenCV kmeans

OpenCV kmeans demos

2015-03-30

stream encryption

C++实现的简单的流加密算法。

2014-07-27

SPCE061单片机

SPCE061单片机头文件

2014-04-07

ezui scroll

ezui scroll dialog

2014-03-30

rollupctrl

CRollupCtrl C++ MFC

2014-03-09

MFC 计算器

重绘CMFCPopupMenu、CMFCEditBrowseCtrl 的计算器

2014-01-26

C++ 桌面宠物-金鱼

MFC环境下的桌面宠物,金鱼。。。。。。。。。。。。。。。。。 使用方法: //0,添加left.png,right.png资源文件 //1, 头文件定义变量 GoldFish pet; //2, 在CPP文件创建 // Create a goldfish if (!pet.Create(NULL, NULL, WS_CHILD | WS_VISIBLE, CRect(0,0,0,0), /* CWnd:: */ GetDesktopWindow(), 0x556)) { TRACE0("can not create desktop pet, goldfish."); } pet.UpdateWindow();

2014-01-08

VC++ 透明flash控件

VC++ 透明flash控件。。。。。http://www.codeproject.com/Articles/178940/Enhanced-Transparent-Flash-Control-in-C

2013-12-30

BreadCrumb

VC++ 2010 面包屑Breadcrumb 导航控件

2013-10-10

[Windows.7.设备驱动程序开发].(Windows.7.Device.Driver).Reeves,.

[Windows.7.设备驱动程序开发].(Windows.7.Device.Driver).Reeves,. 文字版本

2013-07-24

使用VS2010编译fismain

使用VS2010编译fismain

2013-01-03

MATLAB模糊控制器(*.fis)C/C++接口文件

/* * 这是修改过后的fis.c模糊推理系统库函数,可以移植C/C++环境使用,在VS2010的MFC环境经过测试 * 1、将fis.c文件拷贝到项目中; * 2、修改VS2010的配置属性,项目->属性->C/C++->预处理器->预处理器定义,添加 * _CRT_SECURE_NO_WARNINGS * 3、在【解决方案资源管理器】中选中fis.c文件,单击右键的属性 * 【配置属性】->【常规】->【项类型】,配置为【C/C++ 标头】 * 4、如果是C语言文件(*.c)使用 * #include "fis.c" * 包含接口库文件; * 5、如果是C++文件,使用 * extern "C"{ * #include "fis.c" * } * 包含库文件。 * 祝你使用愉快! * hemmingway 2013/1/2 */

2013-01-03

C/C++模糊控制实现

这个是用MATLAB辅助设计模糊控制器*.fis,使用C/C++来实现模糊控制的接口文件。 首先,使用MATLAB的模糊控制工具箱设计好模糊控制器,即生成的 .fis 文件。 接下来,把 *.fis文件和这里的fis.c文件拷贝到你的C/C++工程当中。 C文件引用使用: #include "fis.c" C++文件使用: extern "C"{ #include "fis.c" }

2013-01-02

空空如也

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

TA关注的人

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