SVD 奇异值分解
Matlab 卷积
Correlation and Convolution
registration
Hypertext Markup Language
1.User interface Design
Get feedback early and often
Low cost prototype
User stories
(to serve virtual host that doesn't have its own IP address to distinguish itself from other virtual hosts.)
For web servers:
GET:
/test/demo_form.asp?name1=value1&name2=value2
POST:
1 | POST /test/demo_form.asp HTTP/1.1 |
HEAD:
PUT:
DELETE:
OPTIONS:
CONNECT:
Content-Type
, Content-Length
, etc.\r\n
(carriage return and newline).企业级商业关系型数据库,满足高可用性,性能和拓展性,云服务托管
写:单个master
读:
事务提交:
恢复:
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [-2,1,-3,4,-1,2,1,-5,4], the contiguous subarray [4,-1,2,1] has the largest sum = 6.
More practice: If you have figured out the O(n) solution, try coding another solution using the divide and conquer approach, which is more subtle.
1.O(n)
amazing的解法
需要记录连续的和和需要丢弃前面重新开始的地方
1 | public class longestSubstring { |
2.Divide and conquer approach
What is divide and conquer?
http://blog.csdn.net/xyd0512/article/details/8220506
http://open.163.com/special/opencourse/algorithms.html
事实上分治算法最好味O(nlogn), 不如线性算法
1 | public class Solution { |
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).
You are given a target value to search. If found in the array return its index, otherwise return -1.
You may assume no duplicate exists in the array.
简单来说像是个二分查找,但是需要找到旋转轴,初步想法是递归,能过
看别的solution 并不需要找轴,可以在二分的基础上直接找,试试看可以
Given a linked list, swap every two adjacent nodes and return its head.
For example, Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space. You may not modify the values in the list, only nodes itself can be changed.
1.Swap in 4 group(Memory Limit Exceed)
1 | public class longestSubstring { |
2 Recursion(simple but take a stcak of O(n), stack overflow)
1 | public class Solution { |
3.Swap in 3 group, fake a dummy node(constant memory)
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "([)]" are not.
1.递归:stack overflow
1 | public class Solution { |
2.堆栈
1 | public class Solution { |