自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 js中apply()和call()的区别

PS:阿里面试还是跪掉了,跪就跪吧,心情有点小郁闷,不过还是要好好总结和思考,多努力!主要考虑一下几个问题:1. apply和call的区别在哪里?相同点:两个方法产生的作用完全一样 不同点:方法传递的参数不同 call, apply方法区别是,从第二个参数起, call方法参数将依次传递给借用的方法作参数, 而apply直接将这些参数放到一个数组中再传递, 最后借用方法的参数列表是一样的.ap

2016-03-29 21:28:13 616

原创 js数据类型判断和数组判断

写在开篇: 昨天面试发现一个十分非常简单的问题竟然没有回答上来,可能也确实是因为太紧张了,感觉被自己蠢哭了。后来想想还是应该认真记录一下,这样才能印象深刻。革命尚未成功,壮实仍需努力!1. js六大数据类型number:数字,整数、浮点数等等,string:单引号或者双引号来说明,Boolean:返回true和false,这两个值不一定对应1和0object:对象,可以执行new操作符后跟要

2016-03-29 11:14:04 4717

原创 css让footer始终位于页面的最底部

html代码结构为:<div class="container"><div cass="header"></div><div class="body"></div><div class="footer"></div></div>第一种情况:footer随着进度条的滚动而滚动.container{width:100%;min-height:100%;position:relative;}.b

2016-03-23 22:17:39 29357

原创 JavaScript之链表操作

单链表//Node类和LList类function Node(element){ this.element=element; this.next=null;}function LList(){ this.head=new Node("head"); this.find=find; this.insert=insert; this.display=di

2016-03-21 10:23:59 3039 1

原创 js代码片段【数制转换】【判断回文】

数制之间的相互转换(适用于以2~9为基数的情况) 可以利用栈将一个数字从一种数制转换成另一种转换算法如下: 1.最高位为n%b,将此位压入栈; 2.使用n/b代替n; 3.重复步骤1和2,直到n=0且没有余数; 4.持续将栈内元素弹出,直到栈为空,以此将这些元素排列,得到转换后数字的字符串形式。源码:function mulBase(num,base){ var s=new Sta

2016-03-17 17:48:51 1324

原创 JavaScript中栈和队列相关操作和实现

栈的介绍栈就是和列表类似的一种数据结构,数据只能在栈顶添加或者删除。栈是一种特殊的列表,栈内的元素只能通过列表的一端访问,成为栈顶。栈具有后进先出的特点,所以任何不在栈顶的元素都无法访问。后进先出(LIFO,last-in-first-out)的数据结构。对栈的操作1.对栈的两种主要操作为将一个元素压入栈和将一个元素弹出栈。 入栈:push(); 出栈:pop(); 2.预览栈顶的元素peek

2016-03-15 17:11:30 574

原创 232. Implement Queue using Stacks&225. Implement Stack using Queues

题目Implement the following operations of a queue using stacks.push(x) – Push element x to the back of queue. pop() – Removes the element from in front of queue. peek() – Get the front element. empty(

2016-03-14 21:45:06 342

转载 【读书笔记】CSS3学习(三)

7.文本效果CSS3文本效果主要包含多个新的文本特性,用来在正常的文本中实现一些额外的特性。主要是两个属性的CSS3文本效果 1)text-shadow 文本阴影,指定了水平阴影,垂直阴影,模糊的距离,以及阴影的颜色。h1{text-shadow: 5px 5px 5px #FF0000;}2)word-wrap 换行,CSS3中自动换行属性允许强制文本换行, 即使这意味着会对单词进行拆分

2016-03-14 10:25:47 428

转载 【读书笔记】CSS3学习(二)

3.CSS3背景CSS3 background中包含几个新的背景属性,提供更大背景元素控制。 主要有两个背景属性: 1) background-size: background-size规定背景图片的尺寸(以像素或者百分比规定尺寸),如果以百分比规定尺寸,尺寸相对于父元素的宽度和高度。.background-size{ background:url(bg_hling.png);

2016-03-11 22:51:27 376

转载 【读书笔记】CSS3学习(一)

本文转自: https://github.com/waylau/css3-tutorial/blob/master/SUMMARY.mdCSS介绍CSS是层叠样式表(cascading style sheet)的缩写,用于争抢控制页样式并允许将样式信息和网页内容分离的一种标记性语言。 语法:selector{property:value;}//selector:选择器,表明花括号中的属性设置将

2016-03-11 18:19:43 656

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

2016-03-11 13:04:42 295

原创 HTML5学习(二)

6.表单html5带来了新的表单元素、新输入控件类型和新的属性,新的输入控件类型包括:email:用于输入电子邮件地址;url:用于输入URL;date:用于输入日期和时间;number:用于输入数值;range:用于生成滑动条;search:用于搜索框;Data Pickers:日期选择器;tel:用于输入电话号码;color:用于选择颜色;input类型-email email

2016-03-10 22:53:07 579

原创 328. Odd Even Linked List

题目Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the value in the nodes. You should try to do it in

2016-03-08 22:49:42 400

原创 191. Number of 1 Bits

题目Write a function that takes an unsigned integer and returns the number of ’1’ bits it has (also known as the Hamming weight).For example, the 32-bit integer ’11’ has binary representation 00000000000

2016-03-08 11:08:20 335

原创 206. Reverse Linked List

题目Reverse a singly linked list.click to show more hints.Subscribe to see which companies asked this question源码JavaScript/** * Definition for singly-linked list. * function ListNode(val) { * this

2016-03-08 10:49:01 342

原创 HTML5学习(一)

HTML5是什么?html5最先由WHATWG(Web 超文本应用技术工作组)命名的一种超文本标记语言,随后和W3C的xhtml2.0(标准)相结合,产生现在最新一代的超文本标记语言。可以简单点理解成:HTML 5 ≈ HTML+CSS 3+JS+API。HTML5新特性HTML5 中的一些有趣的新特性: ps: 1.在文档类型声明上,html5比较方便简洁。html:<!DOCTYPE ht

2016-03-07 23:52:08 2120 1

原创 CSS中!important的使用

语法CSS的原理: 我们知道,CSS写在不同的地方有不同的优先级, .css文件中的定义 < 元素style中的属性,但是如果使用!important,事情就会变得不一样。语法:Selector{sRule !important;}说明: 提升指定样式规则的应用优先权。例子:转自:http://www.cnblogs.com/yudy/archive/2013/05/27/3102825

2016-03-07 11:00:52 2360

原创 235. Lowest Common Ancestor of a Binary Search Tree

题目Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.According to the definition of LCA on Wikipedia: “The lowest common ancestor is defined between t

2016-03-03 20:24:35 363

原创 13. Roman to Integer

题目Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.Subscribe to see which companies asked this question翻译给定一个罗马数字,将它转换成整数。思路罗马数字的含义:I->1;V->5;

2016-03-03 16:19:38 319

原创 144. Binary Tree Preorder Traversal &&94. Binary Tree Inorder Traversal

题目Given a binary tree, return the preorder traversal of its nodes’ values.For example: Given binary tree {1,#,2,3}, 1 \ 2 / 3 return [1,2,3]. Note: Recursive solution is trivia

2016-03-02 23:20:02 294

原创 260. Single Number III

题目iven an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once.For example:Given nums = [1,

2016-03-02 17:37:19 295

原创 【读书笔记】JavaScript图片库

利用JavaScript来创建图片库的最佳选择:把整个图片库的浏览链接集中安排在图片库主页里,只要用户点击主页的某个图片链接时才把相应的图片传送给他。源码: images.html<!DOCtype html><html lang="en"> <head> <meta charset="uft-8"> <title>image gallery</title

2016-03-02 16:50:49 496

原创 319. Bulb Switcher

题目There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every third bulb (turning on if it’s off or turning off

2016-03-01 17:41:10 326

原创 171. Excel Sheet Column Number

题目Related to question Excel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number. A -> 1 B -> 2 C -> 3 ... Z -> 26 AA -> 27

2016-03-01 13:20:16 283

原创 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.翻译给定两个字符串,写一个函数确定t是s的相同字母

2016-03-01 13:05:36 272

原创 122. Best Time to Buy and Sell Stock II

题目Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy one a

2016-03-01 12:37:25 266

数学建模源码总结

数学建模的代码参考

2016-04-07

互联网项目商业计划书(2013年融资成功案例范文)-专家免费咨询

互联网项目商业计划书(2013年融资成功案例范文)-专家免费咨询

2015-06-06

计算机视觉-深度图像

计算机视觉讲义,深度图像、图像匹配算法、边缘检测~

2015-05-19

论文笔记:基于自适应选择颜色属性的实时视觉跟踪

论文笔记:基于自适应选择颜色属性的实时视觉跟踪。

2015-03-30

数据库系统概论课件

数据库基础,大三课程,相关ppt资料复习的时候供大家参考

2013-03-07

模糊数学方法及其应用

模糊数学的基础知识,模糊数学思想、隶属度、隶属度函数、模糊概念的相关理论。。。

2012-09-02

空空如也

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

TA关注的人

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