自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(35)
  • 收藏
  • 关注

转载 全文转摘,留着自己看

鸡父母时代,正式来临​。​①单纯的勤劳≠成功重要因素(注:本文说的鸡娃,是一个网络词汇,意思就是逼孩子996式的努力读书。)社会结构大致是这样的,不完全正确,只是简化方便理解。掌握生产资料的叫做统治阶级。不掌握生产资料的叫做打工人。国际分工上也是如此,流水线看起来轰轰烈烈,实际上赚不了几个钱。核心的技术、知识产权,那些最重要的东西,才是利润最大的。全球大约一半的苹果手机都来自郑州的富士康工厂,富士康的中国人都很勤劳啊,但是为什么勤劳却无法致富?因为你这玩意不稀缺,全...

2021-10-31 12:25:07 122

转载 排序算法

目录冒泡排序  鸡尾酒排序  选择排序插入排序二分插入排序  希尔排序  归并排序堆排序快速排序   我们通常所说的排序算法往往指的是内部排序算法,即数据记录在内存中进行排序。  排序算法大体可分为两种:    一种是比较排序,时间复杂度最少可达到O(n log n),主要有:冒泡排序,选择排序,插入排序,归并排序,堆排序,快速排序等。    另

2017-03-20 10:29:17 305

转载 Web交互设计优化的简易check list

原文 http://uedc.163.com/4308.html“优化已有产品的体验”,这是用户体验相关岗位职责中常见的描述。我们的产品常常是在快速的迭代过程中不断完善的,就像孩子生下来需要养育才能长大一样,优化已有功能/产品,和设计新功能/产品同样重要,不可偏废。但是,相比实现新功能,已有功能的优化总是显得没有那么紧迫而且很零散,导致了迭代优化的计划总是被归入“重要不紧急”甚至是“不

2017-03-17 17:23:18 651

转载 可用性测试

http://ued.sina.com.cn/?p=1041一、概念介绍我们先来说说可用性的概念。根据ISO 9241-11的定义,可用性是指在特定环境下,产品为特定用户用于特定目的时所具有的有效性、效率和主观满意度。有效性是用户完成特定任务和达成特定目标时所具有的正确和完整程度。效率是用户完成任务的正确和完成程度与所用资源(如时间)之间的比率。主观满意度是用户在使用产品过

2017-03-17 17:19:11 1291

转载 常见浏览器兼容性问题与解决方案css篇

原文http://www.jb51.net/css/97298.html所谓的浏览器兼容性问题,是指因为不同的浏览器对同一段代码有不同的解析,造成页面显示效果不统一的情况。在大多数情况下,我们的需求是,无论用户用什么浏览器来查看我们的网站或者登陆我们的系统,都应该是统一的显示效果。所以浏览器的兼容性问题是前端开发人员经常会碰到和必须要解决的问题。在学习浏览器兼容性之前,我想把前端开发人

2017-03-17 16:42:01 2122

转载 来自 W3School 的 HTML 快速参考。可以打印它,以备日常使用。

来自 W3School 的 HTML 快速参考。可以打印它,以备日常使用。HTML Basic DocumentDocument name goes hereVisible text goes hereText ElementsThis is a paragraph (line break) (horizontal rule)This text

2017-03-16 10:59:32 677

原创 javaScript cookies

//w3school 提供的一个例子function getCookie(c_name){if (document.cookie.length>0){ c_start=document.cookie.indexOf(c_name + "=")if (c_start!=-1){ c_start=c_start + c_name.length+1 c

2017-03-16 08:47:56 307

转载 cookie

状态管理之cookie详解(1)什么是状态管理    将浏览器与web服务器之间的多次交互作为一个整体来处理,并且将多次交互所涉及的数据(即状态)保存下来。(2)如何进行状态管理?    第一大类:客户端状态管理技术:即将状态(也就是多次交互所涉及的数据)保存在客户端(浏览器)。    第二大类:服务器端状态管理技术:即将状态保存在web服务

2017-03-14 13:12:43 303

转载 一次完整的HTTP请求过程

当我们在浏览器的地址栏输入 www.linux178.com ,然后回车,回车这一瞬间到看到页面到底发生了什么呢? 以下过程仅是个人理解: 域名解析 --> 发起TCP的3次握手 --> 建立TCP连接后发起http请求 -->服务器响应http请求,浏览器得到html代码 -->浏览器解析html代码,并请求html代码中的资源(如js、css、图片等) --> 浏览器对页面进行

2017-03-14 13:02:11 2942

转载 web前端知识体系

大约在几个月之前,让我看完了《webkit技术内幕》这本书的时候,突然有了一个想法。想把整个web前端开发所需要的知识都之中在一个视图中,形成一个完整的web前端知识体系,目的是想要颠覆人们对于前端只有三大块(html、css、js)的认识——做web前端需要的比这三大块要多得多。  拖了好几个月了,但是由于近期将要参加的某一个活动,我不得不这两天把这个东西整出来。说干就干。上午我就开始在办公

2017-03-14 13:00:11 402

原创 OpenCv实践-FaceRecognizer使用

//#include "stdafx.h"#include #include #include #include #include using namespace cv;using namespace std;//读取image存入Mat中static void read_csv(const string& filename, vector& image

2016-11-02 09:20:49 5657 3

转载 CodeForge源码分享

CodeForge源码分享

2016-05-11 19:45:37 704

转载 化简问题

public class Solution {    public double myPow(double x, int n) {     if(n==0) return 1;    else if(n    else return unsignedPow(x, n);}public double unsignedPow(double x, int n){    i

2015-11-16 12:14:29 474

转载 map

public class Solution {     public List> groupAnagrams(String[] strs) {        Map> map = new HashMap>();        for (String str: strs){            String sortedStr = sortStr(str);          

2015-11-16 11:23:11 213

转载 排序组合

public class Solution {    public List> permute(int[] nums) {    List> result = new ArrayList>();    List stk = new ArrayList();    boolean[] flag = new boolean[nums.length];    for(int i=0;

2015-11-09 10:43:42 241

转载 匹配

The basic idea is to check and advance two pointers in two strings correspondingly if satisfying specific condition. And the trick part is the attempting backtracking method for '*' matching, which

2015-11-09 09:40:32 239

转载 hashmap没看懂,先复制下来以后看

Maybe this is the so called window technique. The window was moved right by the while(){} loop. Since substring() is actually expensive in Java, each time I store the substring in a variable to avoid

2015-10-24 16:58:26 362

转载 考虑overflow

public class Solution { private int divide_res = 0;public int divide(int dividend, int divisor) {    boolean neg = false;//考虑overflow    if(dividend == Integer.MIN_VALUE){        if(

2015-10-23 12:23:55 250

转载 删除重复项

public int removeDuplicates(int[] nums) { int begin = 0; if(nums.length 2){ return nums.length; } int temp = nums[0]; for(int i=1;ilength;i++){ if(nums[i] !=temp) n

2015-10-22 20:59:17 235

转载 反转链表

public class Solution {         public  ListNode reverse(ListNode head, ListNode end){           if(head==null || head.next==null || head==end || head.next==end) return head;           ListNode

2015-10-22 16:23:04 193

原创 ListNode

public class Solution {    public ListNode swapPairs(ListNode head) {        ListNode h=new ListNode(0);        h.next=head;        ListNode t=h;        while(t.next!=null&&t.next.next!=null

2015-10-21 21:27:13 983

转载 java递归

public static ListNode mergeKLists(ListNode[] lists){ return partion(lists,0,lists.length-1);}//将k个lists分解成两两合并public static ListNode partion(ListNode[] lists,int s,int e){ if(s==e) return

2015-10-21 20:39:25 150

转载 abs,绝对值

public class Solution {    public int threeSumClosest(int[] nums, int target) {        Arrays.sort(nums);    int diff = Integer.MAX_VALUE;    int output = 0;    for(int i = 0; i         in

2015-10-16 22:34:38 376

转载 list

public class Solution {public List> threeSum(int[] num)   {    ArrayList> result = new ArrayList>();           Arrays.sort(num);    for (int i=0; i         int start = i + 1, end = num

2015-10-15 11:15:24 306

转载 ImageIcon显示不出来.

在JAVA中或者用MyEclipse、Eclipse开发工具时使用这样的格式,ImageIcon bug=new ImageIcon("ego.jpg");可能图片会显示不出来. 1.以下是一种解决方法:首先是把你的图片和你程序的.class文件放在同一个包中比如说你的程序有个image.java则可以用如下代码代替:package com.test ;

2015-10-14 10:02:24 1502

原创 枚举

public class Solution {   /* public String intToRoman(int num) {           int ge;           StringBuilder roman=new StringBuilder("");           if(num%10==0){               roman+="X";

2015-10-10 14:50:14 207

原创 max min

public class Solution {    public int maxArea(int[] height) {       /* int max=0;        int len=height.length;        for(int i=0;i            int tmp=0;           // int maxl=0;   

2015-10-10 14:01:05 300

转载 没看懂

public class Solution {    public boolean isMatch(String s, String p) {        if(s==null && p==null||s.length()==0 && p.length()==0){            return true;        }        if(s==null|

2015-10-09 14:47:13 330

原创 string转integer

public class Solution {    public int myAtoi(String str) {if(str.trim().equals(""))//trim()去掉空格        return 0;    long res = 0;    int sign = 1, i = 0;    str = str.trim();        

2015-10-09 10:52:03 253

原创 overflow

public class Solution {    public int reverse(int x) {    int res = 0;        while (x != 0) {            if (res*10/10 != res) return 0;  // if res*10 overflows, return 0            res

2015-10-09 10:26:50 261

原创 java数组一些便利的方法

public class Solution {    public double findMedianSortedArrays(int[] nums1, int[] nums2) {    int[] result = new int[nums1.length+nums2.length];//arraycopy复制    System.arraycopy(nums1,0,r

2015-09-23 23:08:17 761

原创 string的一个用法

public class Solution {    public int lengthOfLongestSubstring(String s) {     /*  String a=new String();        for(int n=0;n            a[n]=s[n];        }*/        int count=0;

2015-09-23 20:28:39 237

原创 html初学

基本格式 HTML>  HTML 文件的正文 命名*.htm或*.html无空格无特殊符号(例如&符号),只可以有下划线“_”,只可以为英文、数字区分大小写首页文件名默认为:index.htm 或 index.html 居中元素 用来标记搜索引擎在搜索你的页面时所取出的关键词。 用来标记文档的作者。

2015-09-23 10:18:00 297

原创 list初学

/** * Definition for singly-linked list. * public class ListNode { *     int val; *     ListNode next; *     ListNode(int x) { val = x; } * } */public class Solution {    public

2015-09-22 21:10:58 375

原创 map初次使用

class Solution {    public int[] twoSum(int[] nums, int target) {       int[] twoSum=new int[2];Map map=new HashMap       for(int i=0;i           if(map.containsKey(target - nums[i])){    

2015-09-22 20:34:20 475

空空如也

空空如也

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

TA关注的人

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