2015年4月3日

Longest Palindromic Substring

摘要: Longest Palindromic Substring问题:Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and th... 阅读全文

posted @ 2015-04-03 16:32 zhouzhou0615 阅读(134) 评论(0) 推荐(0) 编辑

Median of Two Sorted Arrays

摘要: Median of Two Sorted Arrays问题:There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall ... 阅读全文

posted @ 2015-04-03 16:07 zhouzhou0615 阅读(161) 评论(0) 推荐(0) 编辑

设计模式开始--访问者模式

摘要: 访问者模式一、作用(1)访问者模式适用于数据结构相对稳定的系统,把处理从数据结构中分离出来,当系统有比较稳定的数据结构,又有易于变化的算法,访问者模式是比较适用的。(2)目的是封装施加于某种数据结构元素之上的操作,且可以在不修改原有的系统的基础上增加新的操作方式。二、类图三、实现(1)IShape定... 阅读全文

posted @ 2015-04-03 09:08 zhouzhou0615 阅读(164) 评论(0) 推荐(0) 编辑

导航