- 博客(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
797
原创 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
905
原创 使用 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
4453
原创 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
366
原创 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
332
原创 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
278
原创 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
337
原创 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
343
原创 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
317
原创 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
364
原创 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
338
原创 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
312
原创 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
402
原创 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
431
原创 LeetCode #9 Palindrome Number
Description Determine whether an integer is a palindrome. Do this without extra space.
2017-03-17 20:47:08
366
原创 LeetCode #8 String to Integer (atoi)
Description Implement atoi to convert a string to an integer.
2017-03-17 00:38:05
295
原创 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
351
原创 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
278
原创 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
319
原创 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
284
原创 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
340
原创 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
334
原创 strcpy函数的实现
今天看到了一篇博客http://blog.youkuaiyun.com/gpengtao/article/details/7464061,博文中对于strcpy的实现方法
2014-06-25 22:46:19
924
原创 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
1346
原创 杨氏矩阵的查找
题目描述杨氏矩阵,即在一个二维数组中,每一行都按照从左到右严格递增的顺序排序,每一列都按照从上到下严格递增的顺序排序。请完成一个函数,输入这样的一个N*N的二维数组和M个整数,判断数组中是否含有上述M个整数。你能解决这个问题吗?输入格式可能有多个测试输入,第一行给出总共的测试输入的个数。对于每个测试输入,第一行包含两个正整数N和M,接下来是一个N*N的杨氏矩阵,最后
2013-10-30 21:00:32
973
原创 用C语言编写贪吃蛇代码(难度可选)
/*****************************************************************************贪吃蛇(难道可选)**********************************制作者:Xu Lizi 日期:2012/12/31****************************部分函数有借鉴***********
2013-10-24 17:56:56
24591
6
原创 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
3769
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人