- 博客(69)
- 资源 (14)
- 收藏
- 关注

原创 cocos2dx+KinectV2 体感游戏之微信打飞机
Cocos2dx微信打飞机体感游戏演示视频地址:点击打开链接 (注 : 视频中两次使用炸弹,没有很好的感应,因为阈值设定有点问题,已改)游戏的源码也上传到了 csdn 50下载积分 , 但同时也上传到了Github,来个star吧,免费下载:https://github.com/tanlichun211/SomaticGame-WeChat_PlanWars1.打飞机添加结束层 √2.道具双排...
2018-04-20 09:35:09
2738
3
原创 VS2013+PCL1.8.0+Opencv2.4.9+Kinect V2 点云的获取与显示
一、PCL 1.8.0 相关文件下载: 先到百度网盘下载安装和配置文件,开始成功配置了X64的,后来为了和自己32位的opencv匹配,改为了win32版本的;属性表和相应的pdb.rar都下载下来。 https://pan.baidu.com/s/1Z2IGOAmizWfDa9Wt1mE9Gg 二、点击 PCL-1.8.0-AllInOne-msvc2013-win3...
2018-11-13 14:41:03
1792
7
原创 面试指南-公共字符串求值 (c++)
【题目】 给定一个字符串str,str表示一个公式,公式里可能有整数,加减乘除符号和左右括号,返回公式计算的结果。例如,str = 48×((70-65)-43)+8×1。返回-1816。【说明】可以认定给定的字符串一定是正确的公式,不需要对str做公式有效性检查。如果是负数就需要有括号括起来,比如4*(-3)。但如果负数作为公式的开头或者括号部分的开头,则可以没有括号,比如-3*4和(-3*4...
2018-07-07 21:54:16
557
原创 116. Populating Next Right Pointers in Each Node
Given a binary treestruct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next;}Populate each next pointer to point to its next right node. If there is no next right node...
2018-06-26 15:37:18
203
转载 115. Distinct Subsequences
转自 : https://blog.youkuaiyun.com/feliciafay/article/details/42959119Given a string S and a string T, count the number of distinct subsequences of S which equals T.A subsequence of a string is a new string ...
2018-06-26 15:03:39
204
原创 102. Binary Tree Level Order Traversal
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree [3,9,20,null,null,15,7], 3 / \ 9 20 / \...
2018-06-13 15:10:01
140
转载 97. Interleaving String
Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.Example 1:Input: s1 = "aabcc", s2 = "dbbca", s3 = "aadbbcbcac"Output: trueExample 2:Input: s1 = "aabcc", s2 = "dbbca", s3...
2018-06-07 10:24:39
175
原创 94. Binary Tree Inorder Traversal
Given a binary tree, return the inorder traversal of its nodes' values.Example:Input: [1,null,2,3] 1 \ 2 / 3Output: [1,3,2]Follow up: Recursive solution is trivial, could you do i...
2018-05-28 16:18:26
228
原创 92. Reverse Linked List II
Reverse a linked list from position m to n. Do it in one-pass.Note: 1 ≤ m ≤ n ≤ length of list.Example:Input: 1->2->3->4->5->NULL, m = 2, n = 4Output: 1->4->3->2->5->NUL...
2018-05-24 15:45:03
121
原创 206. Reverse Linked List
Reverse a singly linked list.Example:Input: 1->2->3->4->5->NULLOutput: 5->4->3->2->1->NULLFollow up:A linked list can be reversed either iteratively or recursively. Cou...
2018-05-24 15:03:57
110
原创 90. Subsets II
Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set).Note: The solution set must not contain duplicate subsets.Example:Input: [1,2,2]Output:...
2018-05-18 14:07:11
262
原创 85. Maximal Rectangle
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area.Example:Input:[ ["1","0","1","0","0"], ["1","0","1",&q
2018-05-11 14:55:35
152
原创 82. Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.Example 1:Input: 1->2->3->3->4->4->5Output: 1->2-&g...
2018-04-22 20:08:19
216
原创 83. Remove Duplicates from Sorted List
Given a sorted linked list, delete all duplicates such that each element appear only once.Example 1:Input: 1->1->2Output: 1->2Example 2:Input: 1->1->2->3->3Output: 1->2->...
2018-04-22 10:32:36
240
转载 81. Search in Rotated Sorted Array II
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e., [0,0,1,2,2,5,6] might become [2,5,6,0,0,1,2]).You are given a target value to search. If found in t...
2018-04-20 21:09:50
308
原创 80. Remove Duplicates from Sorted Array II
Given a sorted array nums, remove the duplicates in-place such that duplicates appeared at most twice and return the new length.Do not allocate extra space for another array, you must do this by modif...
2018-04-20 16:22:11
132
原创 79. Word Search
Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically nei...
2018-04-20 15:19:26
134
原创 78. Subsets
Given a set of distinct integers, nums, return all possible subsets (the power set).Note: The solution set must not contain duplicate subsets.Example:Input: nums = [1,2,3]Output:[ [3], [1], [2...
2018-04-20 11:12:24
131
原创 77. Combinations
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.Example:Input: n = 4, k = 2Output:[ [2,4], [3,4], [2,3], [1,2], [1,3], [1,4],]class Solution {...
2018-04-20 09:26:25
124
转载 76. Minimum Window Substring
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).Example:Input: S = "ADOBECODEBANC", T = "ABC"Output: "BANC"Note:If there i...
2018-04-19 14:27:14
148
转载 75. Sort Colors
Given an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white and blue.Here, we will use the inte...
2018-04-18 21:43:21
137
原创 74. Search a 2D Matrix
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted from left to right.The first integer of each row is ...
2018-04-18 21:11:09
111
原创 72. Edit Distance
Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2.You have the following 3 operations permitted on a word:Insert a characterDelete a characterRe...
2018-04-18 16:35:38
99
原创 67. Add Binary
Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".class Solution {public: string addBinary(string a, string b) { swap( a, b); int lenA = ...
2018-04-16 16:20:47
116
原创 66. Plus One
Given a non-negative integer represented as a non-empty array of digits, plus one to the integer.You may assume the integer do not contain any leading zero, except the number 0 itself.The digits are s...
2018-04-16 10:06:49
109
原创 64. Minimum Path Sum
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.Note: You can only move either down or right at any...
2018-04-13 16:25:39
97
原创 63. Unique Paths II
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space is marked as 1 and 0 respectively in the grid.For e...
2018-04-13 09:59:48
107
原创 62. Unique Paths
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to reach the bott...
2018-04-13 09:33:21
119
原创 59. Spiral Matrix II
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.For example,Given n = 3,You should return the following matrix:[ [ 1, 2, 3 ], [ 8, 9, 4 ], [ 7, 6, 5 ]...
2018-04-11 15:44:51
94
原创 58. Length of Last Word
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word does not exist, return 0.Note: A word is defined a...
2018-04-11 15:21:10
92
原创 54. Spiral Matrix
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ]]You should r...
2018-04-08 10:09:59
99
转载 47. Permutations II
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2] have the following unique permutations:[ [1,1,2], [1,2,1], [2,1,1]]转自 : ...
2018-03-25 20:44:43
125
原创 46. Permutations
Given a collection of distinct numbers, return all possible permutations.For example,[1,2,3] have the following permutations:[ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1]]class ...
2018-03-25 20:00:17
104
转载 44. Wildcard Matching
Implement wildcard pattern matching with support for '?' and '*'.'?' Matches any single character.'*' Matches any sequence of characters (including the empty sequence).The matching should cover the...
2018-03-25 16:56:33
100
转载 42. Trapping Rain Water
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.For example, Given [0,1,0,2,1,0,1,3,2,1,2,1], retu...
2018-03-19 14:57:11
120
原创 35. Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no duplicates in the array.
2018-01-25 15:31:25
129
转载 34. Search for a Range
Given an array of integers sorted in ascending order, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the order of O(log n).If the
2018-01-23 14:53:22
144
原创 32. Longest Valid Parentheses
我不会!!!!!!就是不会!! 暴力搜索超时:超时代码class Solution {public: int longestValidParentheses(string s) { return findLong(s); }private: int findLong(string s){ int subLen = s.length(); if (IsPar
2018-01-18 16:31:53
186
转载 31. Next Permutation
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possible, it must rearrange it as the lowest possible ord
2018-01-18 09:33:02
170
转载 30. Substring with Concatenation of All Words
You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in words exactly once and
2018-01-16 20:37:30
156
结合PCL1.8 与Kinect V 2.0获取空间中深度与彩色信息,并保存为点云PCD数据
2019-03-19
两台大恒相机同时保存图像的MFC小程序
2019-03-16
MFC 以太网通讯之UDP (CAsyncSocket)
2017-12-07
Kinect测量论文收集(含kinect应用开发实战全书)
2017-12-02
MFC串口通信程序,ModBus RTU协议
2017-11-30
MFC打开大恒相机
2017-11-29
cocos2d-x-2.26 象棋游戏网络对战版
2017-11-29
KinectV2 实现鼠标控制(VS2013 C++版)
2017-10-25
MFC Opencv显示图片,图片类型为Mat
2017-10-24
MFC下利用OPENCV添加显示图片
2017-10-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人