摘要:
Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example,Given [100, 4, 200, 1, 3, 2],The longes... 阅读全文
摘要:
图片来自百度1、发起请求到前端控制器 2、前端控制器请求handlerMapping查找handler 可以根据xml配置 注解进行查找3、处理器映射器handlerMapping向前端控制器返回handler4、前端控制器调用处理器适配器处理handler5、处理器适配器执行handler6、ha... 阅读全文
摘要:
OrderServlet #createOrder 1 /* 2 * 3 * 生成订单 4 */ 5 public String createOrder(HttpServletRequest req, HttpServletResponse resp) 6 ... 阅读全文
摘要:
OrderDao 1 public PageBean findByUser(String uid, int pc) throws SQLException { 2 List exprList = new ArrayList(); 3 exprList.add(n... 阅读全文
摘要:
problem: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.F... 阅读全文
摘要:
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 al... 阅读全文
摘要:
list.jsp 1 //给减号添加click事件 2 3 $(".jian") 4 .click( 5 function() { 6 //获取c... 阅读全文
摘要:
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An example is the root-to-leaf path 1->2->3 which... 阅读全文
摘要:
1 阅读全文
摘要:
CartItemDao 1 //查询某个用户的某本图书的购物车条目是否存在 2 public CartItem findByUidAndBid(String uid,String bid) throws SQLException 3 { 4 String sql="s... 阅读全文