自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(38)
  • 资源 (40)
  • 问答 (2)
  • 收藏
  • 关注

原创 LeetCode 38 Count and Say(C,C++,Java,Python)

Problem:The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1 is read off as "one 1" or 11.11 is read off as "two 1s" or 21.21 i

2015-05-19 21:36:24 3519

原创 LeetCode 37 Sudoku Solver (C,C++,Java,Python)

Problem:Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume that there will be only one unique solution.

2015-05-19 13:11:05 2924

原创 LeetCode 36 Valid Sudoku (C,C++,Java,Python)

Problem: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 p

2015-05-18 22:56:46 3897

原创 LeetCode 35 Search Insert Position (C,C++,Java,Python)

Problem: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

2015-05-18 20:33:01 1727

原创 LeetCode 34 Search for a Range (C,C++,Java,Python)

Problem:Given a sorted array of integers, 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 target

2015-05-14 21:28:11 1892

原创 LeetCode 33 Search in Rotated Sorted Array (C,C++,Java,Python)

Problem:Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).You are given a target value to search. If found in t

2015-05-14 19:59:49 712

原创 LeetCode 32 Longest Valid Parentheses (C,C++,Java,Python)

Problem:Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.For "(()", the longest valid parentheses substri

2015-05-14 17:16:32 1249

原创 LeetCode 31 Next Permutation (C,C++,Java,Python)

Problem: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 l

2015-05-14 14:36:42 2109

原创 LeetCode 30 Substring with Concatenation of All Words (C,C++,Java,Python)

Problem: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 wordsexac

2015-05-14 13:13:52 2126

原创 LeetCode 29 Divide Two Integers (C,C++,Java,Python)

Problem:Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.Solution:不能乘除就加减就行了,但是一个问题是加减有可能速度太慢,因此需要转换,由于任何一个数都能表示成二进制,所以有d

2015-05-13 09:27:20 2985 1

原创 LeetCode 28 Implement strStr() (C,C++,Java,Python)

Problem:Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Update (2014-11-02):The signature of the function ha

2015-05-12 11:59:17 2457

原创 LeetCode 27 Remove Element (C,C++,Java,Python)

Problem:Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't matter what you leave beyond the ne

2015-05-11 20:40:46 1971

原创 LeetCode 26 Remove Duplicates from Sorted Array (C,C++,Java,Python)

Problem:Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this

2015-05-11 20:25:19 1127

原创 LeetCode 25 Reverse Nodes in k-Group (C,C++,Java,Python)

Problem:Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.If the number of nodes is not a multiple of k then left-out nodes in the end should r

2015-05-11 19:55:08 1529

原创 LeetCode 24 Swap Nodes in Pairs (C,C++,Java,Python)

Problem:Given a linked list, swap every two adjacent nodes and return its head.For example,Given 1->2->3->4, you should return the list as 2->1->4->3.Your algorithm should use only con

2015-05-11 16:37:22 2234 1

原创 LeetCode 23 Merge k Sorted Lists (C,C++,Java,Python)

Problem:Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.Solution:采用胜者树的方法,胜者树介绍:胜者树,假如链表数组长度为n,链表元素总个数为k,那么时间复杂度为O(k*log(n))题目大意:

2015-05-11 15:39:00 1473

原创 LeetCode 22 Generate Parentheses (C,C++,Java,Python)

Problem:Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is:"((()))", "(()())", "(())()", "

2015-05-10 21:11:15 2260

原创 LeetCode 21 Merge Two Sorted Lists (C,C++,Java,Python)

Problem:Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.Solution:两个有序链表,每次取头部最小的那个元素,然后将这个元素从原来链表

2015-05-10 17:15:00 1773 1

原创 LeetCode 20 Valid Parentheses (C,C++,Java,Python)

Problem:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order, "()" and "()[]{}

2015-05-10 16:41:00 4219

原创 LeetCode 19 Remove Nth Node From End of List (C,C++,Java,Python)

Problem:Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node fro

2015-05-10 16:07:27 1261

原创 LeetCode 18 4Sum (C,C++,Java,Python)

Problem: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.Note

2015-05-10 15:04:02 2500

原创 LeetCode 17 Letter Combinations of a Phone Number(C,C++,Java,Python)

Problem:Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephone buttons) is given below.

2015-05-10 13:39:32 3832

原创 LeetCode 16 3Sum Closest(C,C++,Java,Python)

Problem: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 woul

2015-05-09 22:26:02 2607

原创 LeetCode 15 3Sum (C,C++,Java,Python)

Problem: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.Note:Elements in a

2015-05-09 21:06:57 5708

原创 LeetCode 14 Longest Common Prefix (C,C++,Java,Python)

Problem:Write a function to find the longest common prefix string amongst an array of strings.Solution:时间复杂度O(n)题目大意:给一个字符串数组,要找到这些字符串的最大前缀公共子串。解题思路:既然是公共子串,那每个字符串肯定都包含有,并且在头部,首先把第

2015-05-08 18:40:35 5898 2

原创 LeetCode 13 Roman to Integer (C,C++,Java,Python)

Problem:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.Solution:时间复杂度O(n)题目大意:与12题相反,给一个罗马数字,要求转化为十进制数字解题思路:Java源

2015-05-08 16:57:01 1323

原创 LeetCode 12 Integer to Roman(C,C++,Java,Python)

Problem:Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.Solution:根据数字将每一位转换为罗马字符串即可,时间复杂度O(len(num))题目大意:给一个整数,将整数调整为罗马数字,

2015-05-08 13:13:53 1822

原创 LeetCode 11 Container With Most Water (C,C++,Java,Python)

Problem: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

2015-05-07 22:56:04 1808

原创 LeetCode 10 Regular Expression Matching (C,C++,Java,Python)

Problem: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 e

2015-05-07 21:02:00 1612

原创 LeetCode 9 Palindrome Number

Problem:Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (ie, -1)If you are thinkin

2015-05-07 11:21:40 622

原创 LeetCode 8 String to Integer (atoi) (C,C++,Java,Python)

Problem: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 and ask yourself what are the pos

2015-05-07 10:38:53 3086

原创 LeetCode 7 Reverse Integer(C,C++,Java,Python)

Problem:Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321Have you thought about this?Here are some good questions to ask before coding. Bonus

2015-05-07 09:23:20 1330

原创 LeetCode 6 ZigZag Conversion (C,C++,Java,Python)

Problem:The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H

2015-05-06 22:55:25 1561

原创 LeetCode 5 Longest Palindromic Substring(C,C++,Python,Java)

Problem:Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring.Soluti

2015-05-06 15:38:22 2068

原创 LeetCode 4 Median of Two Sorted Arrays

Problem: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)).Solution:使用

2015-05-06 11:10:30 1369

原创 LeetCode 3 Longest Substring Without Repeating Characters

Problem:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the lengt

2015-05-05 20:20:38 598

原创 LeetCode 2 Add Two Numbers

Problem:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and retur

2015-05-05 18:25:05 882 1

原创 LeetCode 1 Two Sum 题解

Problem:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the

2015-05-05 16:53:05 1839

Android C++编译器

Android系统上的C++编译器,非常好用,想在手机上编程的同学有福啦~~~

2013-05-16

USB禁止工具

可以完美禁止USB的插入并报警,机房完美测试通过,附带源代码,很好的检测工具,上机考试或者比赛的时候可以很好的禁止,保证公平性

2013-05-15

安装Wine时需要的Flex最新版

装wine时总是提示flex is too old,于是下载了最新版的flex分享给大家 安装: 1、./configure 2、make 3、make install

2013-05-10

Linux与Windows相互远程工具

Linux与windows之间,Windows与windows之间都可以使用,完美运行,汉化过了已经,基于SSH,Telnet,等等,都可以

2013-05-10

经典的100套网站模板

经典的100套网站模板,非常全,涵盖各种网站,开发网页是个很不错的选择

2013-05-06

C语言100个经典算法

C语言的100个经典算法,想学算法的话是个很不错的文件

2013-05-06

操作系统作业(可变分区模拟)

操作系统上机的作业,模拟计算机进行可变分区的分配和回收操作

2013-05-06

数字雨源代码

一个数字雨屏保的源代码,分享给大家,希望能够有用

2013-05-05

HTTP代理(自己做的)

自己做的HTTP代理 支持HTTPS代理,QQ代理,亲测可用,并且经过很长时间的真机测试,每一行代码都是自己敲的

2013-05-05

HTTP协议详解

很好的介绍了HTTP协议,清晰易懂,讲解的很清楚,分享给大家

2013-05-05

HTTP_代理服务器在Windows下的实现

一个HTTP代理服务器的详细讲解包括详细代码过程,清晰的算法,自己想写代理的话是个很好的参考书

2013-05-05

FtpServer服务器

一个很好用很迷你的FTP工具,用了很长时间局域网下速度很快,希望可以帮助大家

2013-05-05

第三届蓝桥杯全国软件大赛决赛真题

第三届蓝桥杯全国软件大赛决赛真题,希望能晋级第四届的同学们考个好的成绩

2013-05-05

第四届蓝桥杯全国软件大赛预赛题目

第四届蓝桥杯全国软件大赛预赛题目,5月5日的,刚出来,希望大家考个好的成绩

2013-05-05

酒店管理系统

很好用的酒店管理系统,上交作业绝对可以得满分,希望可以帮到你,谢谢

2013-03-10

麻省理工学院算法导论

麻省理工学院算法导论 介绍算法导论的好资料,强烈推荐

2013-01-05

深入理解Java虚拟机JVM高级特性与最佳实践(第2版)

深入理解Java虚拟机JVM高级特性与最佳实践(第2版)

2015-05-08

Pattern Recongition Quiz

This is about Pattern Recognition Quiz, When you want to know it ,it is very good.

2014-11-22

数据挖掘经典算法 关联规则挖掘Apriori算法

数据挖掘中关联规则挖掘的Apriori算法源代码,很不错,值得看一下

2014-10-19

Web数据挖掘(Web Data Mining)

Web数据挖掘,学习数据挖掘的经典书籍,自己一直在看,分享给大家

2014-09-20

Json工具包

这是Json的开发工具包,里面包含有Json开发所有的jar包,完美运行,亲测可用

2014-09-17

贝叶斯算法和KNN算法的文本分类器Java实现

本文为基于贝叶斯算法和KNN算法的文本分类器Java实现,很详细,在网上找的,给大家共享看看

2014-07-23

Http代理服务器

Http代理服务器,自己手动开发的,可以逃避学校客户端检测,一个寝室一个电脑联网,大家都可以用

2014-05-26

绿色免安装版论文查重检测

绿色免安装版论文查重,应用最知名的知网数据库查重,亲测可用,不用安装

2014-05-26

复旦上机真题

复旦考研上机真题,马上复试啦,加油啊大家

2014-02-21

计算机 2013年最后8套模拟题_第1套

2013年最后8套模拟题_第1套,考研的孩子们有福了

2013-09-21

历年英语四级真题及答案下载

里面包含历年四六级真题和答案,快快准备四六级吧,加油!!

2013-06-08

汇编语言Nasm编译器

汇编语言的编译器NASM的,感觉Nasm比Masm好多了

2013-06-04

2013年研究生入学考试计算机统考大纲

2013年研究生入学考试计算机统考大纲,王道整理

2013-05-28

软考真题与答案解析

软考真题,包含答案解析,很好很不错,大家快来看

2013-05-25

2013年软考网络工程师试题及其详解

2013年软考网络工程师试题及其详解,含有题目和答案,讲解的很清晰

2013-05-25

精通Windows Sockets网络开发:基于Visual C++实现-带源码

精通Windows Sockets网络开发——基于Visual C++实现 目 录 第1篇网络开发基础篇 第1章准备开发环境 1.1windows sockets开发概述 1.1.1网络程序开发应用 1.1.2网络程序结构——c/s、b/s 1.1.3网络程序通信基础——网络协议 1.1.4网络程序通信技术——windows sockets介绍 1.2连接网络 1.2.1tcp/ip设置 1.2.2tcp/ip是否工作正常 1.2.3系统与网络适配器间的通信 1.2.4默认网关 1.2.5ping其他计算机ip地址 1.3创建应用程序 1.3.1控制台程序 1.3.2mfc应用程序 1.4调试两个应用程序 1.4.1启动两个工程 1.4.2将一个工程加入到另一个工程空间 1.5配置开发环境 1.6小结 第2章tcp/ip简介 2.1开放系统互连参考模型 2.2tcp/ip协议概述 2.2.1tcp/ip模型 2.2.2udp 2.2.3tcp 2.2.4端口 2.3小结 第3章windows sockets基础 3.1windows sockets 3.1.1应用程序与windows sockets的关系 3.1.2套接字 3.2协议特征 3.2.1面向连接与面向无连接 3.2.2可靠性与次序性 3.2.3面向消息 3.2.4部分消息 3.2.5从容关闭 3.2.6路由选择 3.2.7广播数据 3.3ip定址 3.3.1ip定址 3.3.2字节顺序问题 3.4基本tcp套接字编程 3.4.1wsastartup()函数 3.4.2socket()函数 3.4.3bind()函数 3.4.4listen()函数 3.4.5accept()函数 3.4.6recv()函数 3.4.7send()函数 3.4.8closesocket()函数 3.4.9shutdown()函数 3.4.10connect()函数 3.5tcp示例程序 3.5.1服务器实现 3.5.2客户端实现 3.6基本udp套接字编程 3.6.1recvfrom()函数 3.6.2sendto()函数 3.7udp示例程序 3.7.1服务器实现 3.7.2客户端实现 3.8套接字选项41 3.8.1getsockopt()函数 3.8.2setsockopt()函数 3.8.3sol_socket选项级别 3.9小结 第2篇visual c++网络模式开发篇 第4章阻塞模式开发 第5章非阻塞模式开发 第6章select模型开发 第7章wsaasyncselect模型开发 第8章wsaeventselect模型开发 第9章重叠i/o模型开发 第10章完成端口模型开发

2013-05-21

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

TA关注的人

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