- 博客(9)
- 收藏
- 关注
原创 [leetcode][array]Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements from
2015-02-04 14:10:03 332
原创 [leetcode][array]remove dulplicates from sorted array
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this in place wi
2015-02-01 15:01:34 377
原创 <s:iterator>循环嵌套list,内层list依赖外层属性
有两个list是嵌套关系,外层list的每个对象有某个属性,根据该属性值不同,内层list不同如下例:外层list取自action中的categoryList数据,循环输出了name和yl1属性值。在每一个外层对象下又会循环内层list,要求是内层的supername属性值和外层的name属性值相等。然后输出内层的每一个对象的threadCount属性值。
2015-01-29 10:11:01 961
原创 ssh框架中,jsp与action之间互传数据
action与jsp之间传递数据的方法一、jsp接受action中传来的数据action调用service中业务函数产生一个数据,例如一个list,将这个list传给jsp进行显示(利用标签循环显示出来)。①首先action自动执行execute函数后跳转到某个jsp页面,需要在struts.xml中进行配置。执行完execute函数需要返回一个值,struts.xml根据这个返回值判
2015-01-29 09:52:30 5186
原创 [leetcode]Single Number(异或运算、for循环、数组length、复杂度)
题目:Single Number描述:Given an array of integers, every e
2014-10-21 16:22:06 402
原创 [leetcode]Maximum Depth of Binary Tree(二叉树最大深度、Depth-first search)
题目:Maximum Depth of Binary Tree
2014-10-21 16:18:48 501
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人