自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

菜鸟程序员的成长历程

一路上学到的编程知识

  • 博客(40)
  • 收藏
  • 关注

原创 Direct3D 11 学习笔记(二)

Direct3D 11 学习笔记(二)DXUT  DXUT 能够提供一个简单的接口来处理 window 的创建,D3D device 的创建。   在不使用 DXUT 框架的时候,我们需要自己调用 windows 的 API 来创建窗口: // Register class WNDCLASSEX wcex; wcex.cbSize = sizeof( WND

2018-01-22 16:13:23 721

原创 Direct3D 11 学习笔记(一)

Direct3D 11 学习笔记(一)Setting Up The Direct3D 11 Device  第一步,创建三个对象:a device, an immediate context, a swap chain   第二步,创建 render target view   第三部,初始化 viewportdevice context  device conte

2018-01-19 11:44:01 841

原创 使用 Ambari 安装 Hbase

安装准备:腾讯云机器五台,分别是sehb1st、sehb2st、sehb3st、sehb4st、sehb5st,其中sehb1st作为master机,其它是client机1.1 设置SSH免密登录在 sehb1st 上生成 ssh 密钥:ssh-keygen -t rsa生成的密钥在~/.ssh文件夹下,将公钥 id_rsa.pub 中的内容拷贝到其它四台机器上~/.ssh/authorized_

2017-08-29 13:48:50 4381

原创 LeetCode #20 Valid Parentheses

Description Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string is valid.The brackets must close in the correct order, “()” and “()[]{}” are all

2017-07-02 22:23:21 319

原创 LeetCode #19 Remove Nth Node From End of List

Description Given a linked list, remove the nth node from the end of list and return its head.

2017-06-27 17:08:26 287

原创 LeetCode #17 Letter Combinations of a Phone Number

Description Given a digit string, return all possible letter combinations that the number could represent.

2017-05-14 21:16:07 228

原创 LeetCode #18 4Sum

Description Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.

2017-05-07 14:44:14 289

原创 LeetCode #16 3Sum Closest

Description Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would ha

2017-05-01 15:31:06 281

原创 LeetCode #15 3Sum

Description Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.

2017-04-23 23:10:48 271

原创 LeetCode #14 Longest Common Prefix

Description Write a function to find the longest common prefix string amongst an array of strings.

2017-04-15 14:59:44 304

原创 LeetCode #13 Roman to Integer

Description Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999.

2017-04-09 17:00:50 284

原创 LeetCode #12 Integer to Roman

Description Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. Note: You may not slant the container and n is at least 2.Analysis题目难度为:Medium

2017-04-09 16:57:23 265

原创 LeetCode #11 Container With Most Water

Description Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). F

2017-03-26 23:36:23 344

原创 LeetCode #10 Regular Expression Matching

Description Implement regular expression matching with support for ‘.’ and ‘*’.'.' Matches any single character.'*' Matches zero or more of the preceding element.The matching should cover the entire in

2017-03-19 22:33:40 376

原创 LeetCode #9 Palindrome Number

Description Determine whether an integer is a palindrome. Do this without extra space.

2017-03-17 20:47:08 309

原创 Introduction_to_Algorithms_7

第七章 快速排序

2017-03-17 20:39:42 312

原创 Introduction_to_algorithms_6

第六章 堆排序

2017-03-17 20:39:15 302

原创 Introduction_to_Algorithms_chap5

第五章 概率分析和随机算法

2017-03-17 20:38:37 392

原创 Introduction_to_Algorithms_chap4

第四章 分治策略

2017-03-17 20:37:29 1936

原创 Introduction_to_Algorithms_chap2

第二章 算法基础课后练习

2017-03-17 20:36:15 967

原创 Introduction_to_Algorithms_Appendix_C

附录C 计数与概率

2017-03-17 00:50:02 553

原创 LeetCode #8 String to Integer (atoi)

Description Implement atoi to convert a string to an integer.

2017-03-17 00:38:05 231

原创 LeetCode #7 Reverse Integer

Description Reverse digits of an integer.

2017-03-17 00:32:11 288

原创 基于OpenWRT开发(三)

ieee80211_radiotap的头文件

2017-03-14 18:02:03 1658

原创 基于OpenWRT开发(二)

安装libpcap库

2017-03-14 18:00:44 2930 1

原创 基于OpenWRT开发(一)

OpenWRT的SDK环境的搭建

2017-03-14 17:59:18 4470

原创 LeetCode #6 ZigZag Conversion

Description The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this:

2017-03-12 20:12:33 298

原创 LeetCode #5 Longest Palindromic Substring

Description Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.ExampleInput: “babad”

2017-03-12 19:57:50 222

原创 LeetCode #4 Median of Two Sorted Arrays

Description 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)).Examplenums1 = [1, 3

2017-03-06 12:30:26 275

原创 LeetCode #3 Longest Substring Without Repeating Characters

Description Given a string, find the length of the longest substring without repeating characters.ExampleGiven “abcabcbb”, the answer is “abc”, which the length is 3.Given “bbbbb”, the answer is “b”, wi

2017-02-25 15:16:51 244

原创 LeetCode #2 Add Two Numbers

Description 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 an

2017-02-25 15:07:36 287

原创 LeetCode #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 you may not use

2017-02-25 14:53:31 284

转载 程序员的八种境界——《高效能程序员的修炼》

1、不朽的程序员

2014-07-09 07:32:09 986

原创 使用汇编语言编写一条简单的贪吃蛇

本文中的汇编语言是基于x86

2014-07-06 12:49:50 8364 1

原创 Cstore project 的总结

经过一段时间的努力,终于完成了Cstore的

2014-07-06 12:45:42 520

原创 strcpy函数的实现

今天看到了一篇博客http://blog.csdn.net/gpengtao/article/details/7464061,博文中对于strcpy的实现方法

2014-06-25 22:46:19 857

原创 C++ Alphacode

限制条件时间限制: 1 秒, 内存限制: 32 兆题目描述Alice and Bob need to send secret messages to each other and are discussing ways to encode their messages: Alice: "Let's just use a very simple code: We'll ass

2013-11-10 00:26:25 986

原创 杨氏矩阵的查找

题目描述杨氏矩阵,即在一个二维数组中,每一行都按照从左到右严格递增的顺序排序,每一列都按照从上到下严格递增的顺序排序。请完成一个函数,输入这样的一个N*N的二维数组和M个整数,判断数组中是否含有上述M个整数。你能解决这个问题吗?输入格式可能有多个测试输入,第一行给出总共的测试输入的个数。对于每个测试输入,第一行包含两个正整数N和M,接下来是一个N*N的杨氏矩阵,最后

2013-10-30 21:00:32 903 1

原创 用C语言编写贪吃蛇代码(难度可选)

/*****************************************************************************贪吃蛇(难道可选)**********************************制作者:Xu Lizi 日期:2012/12/31****************************部分函数有借鉴***********

2013-10-24 17:56:56 24335 10

原创 N个数进栈的出栈顺序全排列及排列种数

//Made by Xu Lizi//2013/10/24#include #include #include #include using namespace std;int a[1000];long long num = 0;bool test_stack (int n);void print(int l, int r,

2013-10-24 00:55:22 3697 2

空空如也

空空如也

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

TA关注的人

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