自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 资源 (11)
  • 收藏
  • 关注

原创 Java基本数据类型面试

在Java基本数据类型有8中,boolean、byte、short、int、long、char、float、double。每一种数据类型都有与其对应的对象类 1、首先先说明一下基本数据类型占用的字节数。如下: 简单类型 boolean byte char short int long float double void 占位数(1个字节8位) 1 8

2017-04-08 14:53:04 1266 1

原创 删除字符串中的空格

如题,例如“ a b c d “, 去除空格后变为”abcd”,要求时间复杂度为O(n)O(n),空间复杂度为O(1)O(1)。 * 那到这道题最开始想到的是用两个指针i,j,i指向第一个空格,j指向空格之后第一个不为空格的字符,然后交换,之后,i再寻找后边第一个等于空格的,j从i的后一个开始扫描。代码如下: public static void remove(char[] chs

2017-04-07 15:38:11 558

原创 LeetCode 215. Kth Largest Element in an Array

Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.For example, Given [3,2,1,5,6,4] and k = 2, return 5. 解法一:该题

2017-04-02 18:21:13 280

原创 LeetCode 494:Target Sum

You are given a list of non-negative integers, a1, a2, …, an, and a target, S. Now you have 2 symbols + and -. For each integer, you should choose one from + and - as its new symbol.Find out how many w

2017-04-01 16:29:49 317

原创 欢迎使用优快云-markdown编辑器

Total HammingDistance –Leetcode. The Hamming distance between two integers is the number of positions at which the corresponding bits are different.Now your job is to find the total Hamming distance be

2017-02-23 16:18:31 282

原创 LeetCode 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

2017-01-12 17:08:33 261

原创 Remove Element

题目描述: Given an array and a value, remove all instances of that value in place and return the new length.Do not allocate extra space for another array, you must do this in place with constant memory.Th

2017-01-02 20:37:45 264

原创 欢迎使用优快云-markdown编辑器

欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦: Markdown和扩展Markdown简洁的语法 代码块高亮 图片链接和图片上传 LaTex数学公式 UML序列图和流程图 离线写博客 导入导出Markdown文件 丰富的快捷键 快捷键 加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl

2017-01-02 19:52:30 309

PS2鼠标控制实验

用C编写的基于51单片机的PS2鼠标控制实验

2013-08-26

转台控制程序C#

用C#编写的转台控制程序,可实现多个轴的循环运动

2015-05-14

基于sd卡的mini2440音乐播放器

用ads编写的基于sd卡音乐播放器,非操作系统版本

2014-01-04

PS2键盘解码

用51单片机实现的ps2键盘解码 ,c语言编写

2013-08-26

AD9850 单片机控制

用msp430f249编写的ad9850,用于产生DDS信号,

2013-08-26

g2553与51通过nrf24l01双向通信

实现了msp430G2553与51单片机的NRF2401通信,且可以双向传输,g2553的部分代码在http://download.youkuaiyun.com/detail/u010539271/7627565

2014-07-13

CAN总线介绍

瑞萨can总线协议介绍,适合入门学习。希望对你有用

2014-03-24

8*8光立方取模软件

用这个工具可实现光立方的取模,以显示各种图案

2013-05-02

TTL、CMOS器件的互连资料总结

详细介绍了TTL,CMOS电平转化的一些简单方法

2014-04-16

msp430G2553与51单片机的NRF2401通信

实现了msp430G2553与51单片机的NRF2401通信,且可以双向传输

2014-07-13

本MATLAB数字信号处理代码

本文介绍了一些简单的matlab在dsp方面的应用。

2013-11-17

空空如也

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

TA关注的人

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