自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 资源 (1)
  • 收藏
  • 关注

原创 数组移0到末尾(不能新建数组)

Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.For example, given nums = [0, 1, 0, 3, 12], after calling your func...

2018-03-08 16:49:22 419

原创 机器人到达终点有几条路径(动态规划)

无障碍版本: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 th...

2018-03-08 15:19:13 2424

原创 给有序数组去重

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 by modifying the ...

2018-03-08 15:14:29 1484

原创 最大蓄水量问题

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). Find two ...

2018-03-08 15:09:36 488

原创 电话号码可能组成的字符串

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.Input:Digit string "23"...

2018-03-08 15:05:44 627

原创 字符串中最长回文字符串

Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Example:Input: "babad"Output: "bab"Note: "aba" is also a valid answer. Example:I...

2018-03-08 15:04:02 159

原创 字符串中非重复子串

Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc", which the length is 3.Given "bbbbb", the answer is "b", with the l...

2018-03-08 14:59:16 209

转载 MD5算法循环中为什么会有 & 0XFF

在32位的电脑中数字都是以32格式存放的,如果是要求一个byte(8位)类型的数字,对于int这种32位的整形,高24位具有随机性(从所有的数字形式来看,前面的24位取值并不确定,我把它视为具有一定的随机性,比如int型的整数,高24位的取值都是不确定的。),低8位才是实际的数据。java.lang.Integer.toHexString() 方法的参数是int(32位)类型,如果

2017-12-08 10:58:02 711

转载 android studio 3.0版本升级问题

android studio 3.0版本升级问题修改:===》 问题一[java] view plain copy print?Error:Cannot choose between the following configurations of project :pickerview:    - debugApiEl

2017-11-20 17:54:32 1481

原创 android SOCKET编程中出现connection reset

在android socket编程中,在PC端和PC上的模拟器实验一个APP,功能无报错运行。但是把服务器程序移植到笔记本上,真机连接笔记本时,修改了客户端socket的连接的IP地址后(这个IP是在笔记本联网后,在cmd下使用ipconfig查到的外网IP),手机向服务器发出请求时,却报出了connection reset错误。发现自己忘记了手机通过 wifi 连接笔记本时,这时候手机应当属于局...

2017-10-30 14:59:34 1975

原创 CCF 窗口

CCF真题答案

2016-12-08 00:08:32 632

原创 编译原理-逆波兰表达式JAVA算法

Demo基于Java语言[java] view plain copy "font-size:18px;">public class InversePoland {      // 9+(3-1)*3+10/2 = 20      //private static String[] ss = new String[]{"9","+","("

2016-11-21 00:22:44 292

原创 编译原理中的逆波兰表达式(数据流图中运算变量的流程)

表达式一般由操作数(Operand)、运算符(Operator)组成,例如算术表达式中,通常把运算符放在两个操作数的中间,这称为中缀表达式(Infix Expression),如A+B。波兰数学家Jan Lukasiewicz提出了另一种数学表示法,它有两种表示形式:把运算符写在操作数之前,称为波兰表达式(Polish Expression)或前缀表达式(Prefix Ex

2016-11-21 00:08:03 1221

蓝牙联机五子棋

此资源可以用于蓝牙联机进行五子棋游戏,简约的山水画背景,就是棋盘太小,读者可以自行修改

2015-05-26

空空如也

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

TA关注的人

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