2016年2月25日

Implement strStr()

摘要: package cn.edu.xidian.sselab.string;/** * * @author zhiyong wang * title: Implement strStr() * content: * Implement strStr(). * * Returns the index of 阅读全文

posted @ 2016-02-25 21:49 wzyxidian 阅读(130) 评论(0) 推荐(0) 编辑

Length of Last Word

摘要: package cn.edu.xidian.sselab.string;/** * * @author zhiyong wang * title: Length of Last Word * content: * Given a string s consists of upper/lower-ca 阅读全文

posted @ 2016-02-25 21:38 wzyxidian 阅读(131) 评论(0) 推荐(0) 编辑

Longest Common Prefix

摘要: package cn.edu.xidian.sselab.string;/** * * @author zhiyong wang * title: Longest Common Prefix * content: * *Write a function to find the longest com 阅读全文

posted @ 2016-02-25 21:16 wzyxidian 阅读(122) 评论(0) 推荐(0) 编辑

Roman to Integer

摘要: package cn.edu.xidian.sselab.string;import java.util.HashMap;import java.util.Map;/** * * @author zhiyong wang * title: Roman to Integer * content: *  阅读全文

posted @ 2016-02-25 18:02 wzyxidian 阅读(155) 评论(0) 推荐(0) 编辑

Valid Palindrome

摘要: package cn.edu.xidian.sselab.string;import java.awt.datatransfer.StringSelection;/** * * @author zhiyong wang * title: Valid Palindrome * content: * G 阅读全文

posted @ 2016-02-25 17:02 wzyxidian 阅读(140) 评论(0) 推荐(0) 编辑

Valid Parentheses

摘要: package cn.edu.xidian.sselab.string;import java.util.Stack;/** * * @author zhiyong wang * title: Valid Parentheses * content: * Given a string contain 阅读全文

posted @ 2016-02-25 16:17 wzyxidian 阅读(161) 评论(0) 推荐(0) 编辑

一个Java对象到底占多大内存

摘要: 最近在读《深入理解Java虚拟机》,对Java对象的内存布局有了进一步的认识,于是脑子里自然而然就有一个很普通的问题,就是一个Java对象到底占用多大内存? 在网上搜到了一篇博客讲的非常好:http://yueyemaitian.iteye.com/blog/2033046,里面提供的这个类也非常实 阅读全文

posted @ 2016-02-25 10:54 wzyxidian 阅读(202) 评论(0) 推荐(0) 编辑

导航