- 博客(20)
- 资源 (4)
- 收藏
- 关注
原创 36. Valid Sudoku
Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with the character '.'.A partially fille
2017-06-27 10:36:31 225
原创 416. Partition Equal Subset Sum
Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both subsets is equal.Note:Each of the array
2017-06-25 12:03:22 199
原创 华为笔试最高分代码问题
题目就不赘述了,下面贴出来两个代码,一个代码ac 10%,另一个则是100%int main(){ int N,M; while(cin>>N>>M){ vector stu(N); int a,b;char c; for(int i=0;i>stu[i]; for(int j=0;j<M;++j){
2017-06-23 16:37:59 897
原创 304. Range Sum Query 2D - Immutable
Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner (row2, col2).The above rectangle (with the red bo
2017-06-22 11:29:00 192
原创 125. Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Panama" is a palindrome."race a car" is not a
2017-06-22 11:03:01 194
原创 慢慢学 动态规划
多做几道题来理解动态规划吧。毕竟代码写出来才能算是真正理解了。A、leetcode 198. House RobberYou are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only c
2017-06-21 09:51:09 308
原创 40. Combination Sum II
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.Each number in C may only be used once in the combina
2017-06-20 11:17:31 199
原创 190. 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 001110010
2017-06-19 10:04:05 221
原创 374. Guess Number Higher or Lower
We are playing the Guess Game. The game is as follows:I pick a number from 1 to n. You have to guess which number I picked.Every time you guess wrong, I'll tell you whether the number is h
2017-06-16 11:46:04 221
原创 112. Path Sum
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.For example:Given the below binary tree and sum
2017-06-09 16:01:50 199
原创 371. 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.预备知识:整数在计算机中的表示方法(信息存储):有符号数:既包括正数负数零;计算机中表示有
2017-06-09 15:05:42 179
原创 257. Binary Tree Paths
Given a binary tree, return all root-to-leaf paths.For example, given the following binary tree: 1 / \2 3 \ 5All root-to-leaf paths are:["1->2->5", "1->3"]class S
2017-06-08 09:50:00 203
转载 unix网络编程 环境搭建 环境配置
转自:http://blog.csdn.net/zone_programming/article/details/51050726遇到跟这篇博客一模一样的问题,但是搜索时并没有出现在首页,于是转载并重新起了个题目。学习unp网络编程,树上的例子均存在#include "unp.h",故需要对环境进行配置。1. 到资源页下载unpv13e 2. 解压并将unpv13e
2017-06-07 15:20:43 895
原创 101. Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree [1,2,2,3,4,4,3] is symmetric: 1 / \ 2 2 / \ / \3 4 4 3
2017-06-07 10:12:48 234
原创 167. Two Sum II - Input array is sorted
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two number
2017-06-06 09:52:28 209
原创 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
2017-06-05 10:12:38 182
原创 242. Valid Anagram
Given two strings s and t, write a function to determine if t is an anagram of s.For example,s = "anagram", t = "nagaram", return true.s = "rat", t = "car", return false.Note:You may ass
2017-06-02 09:53:31 175
原创 136. 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. Could you implement it without using ext
2017-06-02 09:37:52 165
原创 415. Add Strings
Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2.Note:The length of both num1 and num2 is Both num1 and num2 contains only digits 0-
2017-06-01 16:19:31 163
原创 459. Repeated Substring Pattern
Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You may assume the given string consists of lowercase Eng
2017-06-01 10:34:48 255
圆拟合, 最小二乘法, IRLS 权重迭代
2023-12-21
linemod + icp + subpixel
2023-06-20
Wireshark-win64-3.4.0.exe
2020-10-31
IPP使用手册,intel
2016-07-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人