• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
日常任务
天天挖坑
博客园 首页 新随笔 联系 订阅 订阅 管理
上一页 1 2 3 4 5 6 7 下一页

2015年7月1日

7-1日刷题
摘要: Roman to Integer public int romanToInt(String s) { //数字:Ⅰ(1)Ⅴ(5)Ⅹ(10)L(50)C(100)D(500)M(1000) HashMap map = new HashMap(); ma... 阅读全文
posted @ 2015-07-01 00:27 fripSide 阅读(183) 评论(0) 推荐(0)
 
 

2015年6月29日

6-29刷题
摘要: Remove Element int removeElement(vector &A, int elem) { int i = 0; int pointer = A.size() - 1; while (i subarraySum(int[] num... 阅读全文
posted @ 2015-06-29 12:47 fripSide 阅读(135) 评论(0) 推荐(0)
 
 

2015年6月28日

6-28刷题
摘要: Longest Common Substring public int longestCommonSubstring(String A, String B) { // write your code here int len = 0; String t... 阅读全文
posted @ 2015-06-28 00:09 fripSide 阅读(159) 评论(0) 推荐(0)
 
 

2015年6月27日

6-27刷题
摘要: Anagramsclass Solution {public: /** * @param strs: A list of strings * @return: A list of strings */ vector anagrams(vector &str... 阅读全文
posted @ 2015-06-27 23:18 fripSide 阅读(138) 评论(0) 推荐(0)
 
 

2015年4月21日

4-21刷题
摘要: Two Strings Are Anagrams判断两个字符串是否为重组的,没想到太好的方法,直接用计数法简单粗暴。public class Solution { /** * @param s: The first string * @param b: The second s... 阅读全文
posted @ 2015-04-21 17:28 fripSide 阅读(171) 评论(0) 推荐(0)
 
 

2015年1月3日

刷题计划
摘要: leetcode一直没什么兴趣去刷。Topcoder的客户端重要调好,但题太多无从下手。Hackerrank的题没教程,刷的不带感。近段时间刷题几乎停滞了。 最丢人是网易游戏笔试只拿了10分,我擦,虽说只有一个小时,这是得有多菜,才会第一题就跪。 大家都表示CC150和Leetcode要刷上... 阅读全文
posted @ 2015-01-03 18:21 fripSide 阅读(190) 评论(0) 推荐(0)
 
 

2014年6月16日

ubuntu下openoffice开发环境配置
摘要: 1. 安装openoffice或者liboffice - 路径:/usr/lib/openoffice/program ,soffice - 开启服务:1. 安装JDK - 其默认路径:jdk7 版本号:1.7...,jdk6版本号:1.6... - 1. ... 阅读全文
posted @ 2014-06-16 10:42 fripSide 阅读(557) 评论(0) 推荐(0)
 
 

2014年6月5日

6-5日
摘要: Max Points on a Line开始无脑匹配结果超时:class Solution {public: int maxPoints(vector &points) { int ans = 0; for (int i = 0; i ans) ans = num... 阅读全文
posted @ 2014-06-05 11:16 fripSide 阅读(130) 评论(0) 推荐(0)
 
 

2014年5月22日

Reverse Words in a String
摘要: Reverse Words in a String反转一个字符串垃圾方法:#include #include class Solution {public: void reverseWords(string &s) { istringstream is(s); st... 阅读全文
posted @ 2014-05-22 22:39 fripSide 阅读(134) 评论(0) 推荐(0)
 
 

2014年5月17日

5月18日:top10面试算法-LRUcache的实现
摘要: 问题描述:LRU算法:优先把那些最长时间没使用的对象置换掉。根据数据的历史访问记录来进行淘汰数据,其核心思想是“如果数据最近被访问过,那么将来被访问的几率也更高”。JAVA实现:测试:public class preface { public static void main(String[]... 阅读全文
posted @ 2014-05-17 22:05 fripSide 阅读(538) 评论(0) 推荐(0)
 
 
上一页 1 2 3 4 5 6 7 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3