摘要: 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 sh 阅读全文
posted @ 2017-02-10 19:14 Strugglion 阅读(516) 评论(0) 推荐(0) 编辑
摘要: Given a string, find the length of the longest substring without repeating characters. Examples: 解法: 建立一个大小为256整形数组,用来记录每个字符上一次出现的位置。longest记录最长的子串长度, 阅读全文
posted @ 2017-02-09 22:26 Strugglion 阅读(154) 评论(0) 推荐(0) 编辑
摘要: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai 阅读全文
posted @ 2017-02-09 18:58 Strugglion 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文
posted @ 2017-02-09 16:05 Strugglion 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 一、准备工作 1. 安装pip (1)下载 pip下载地址:https://pypi.python.org/pypi/pip#downloads (2)安装 下载后解压,控制台下进入解压后的目录,运行:python setup.py install (3)配置环境变量 在PATH中添加pip的安装路 阅读全文
posted @ 2016-12-06 18:30 Strugglion 阅读(37943) 评论(0) 推荐(0) 编辑
摘要: 1. 我们不禁要问,什么是"服务集群"?什么是"企业级开发"? 既然说了EJB 是为了"服务集群"和"企业级开发",那么,总得说说什么是所谓的"服务集群"和"企业级开发"吧!这个问题其实挺关键的,因为J2EE 中并没有说明白,也没有具体的指标或者事例告诉广大程序员什么时候用EJB 什么时候不用。于是 阅读全文
posted @ 2016-11-03 17:01 Strugglion 阅读(98940) 评论(30) 推荐(51) 编辑
摘要: json和jsonp的使用区别 一. 跨域请求的概念 JavaScript出于安全方面的考虑,不允许跨域调用其他页面的对象。 二. json和jsonp JSON是一种基于文本的数据交换方式(不支持跨域),而JSONP是一种非官方跨域数据交互协议。 使用json格式传递数据的客户端代码如下: 然而, 阅读全文
posted @ 2016-10-03 23:17 Strugglion 阅读(35691) 评论(0) 推荐(3) 编辑