• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

xxxqqq

  • 博客园
  • 联系
  • 订阅
  • 管理
上一页 1 2 3

2017年5月10日

Toy Factory

摘要: Factory is a design pattern in common usage. Please implement a ToyFactory which can generate proper toy based on the given type. Example ToyFactory t 阅读全文

posted @ 2017-05-10 13:58 xxxqqq 阅读(373) 评论(0) 推荐(0)

Singleton

摘要: Singleton is a most widely used design pattern. If a class has and only has one instance at every moment, we call this design as singleton. For exampl 阅读全文

posted @ 2017-05-10 13:55 xxxqqq 阅读(309) 评论(0) 推荐(0)

Find the Missing Number II

摘要: Giving a string with number from 1-n in random order, but miss 1 number.Find that number. Notice n <= 30 Example Given n = 20, str = 19201234567891011 阅读全文

posted @ 2017-05-10 13:47 xxxqqq 阅读(306) 评论(0) 推荐(0)

Edit Distance II

摘要: Given two strings S and T, determine if they are both one edit distance apart. Example Given s = "aDb", t = "adb" return true Given s = "aDb", t = "ad 阅读全文

posted @ 2017-05-10 13:38 xxxqqq 阅读(280) 评论(0) 推荐(0)

Edit Distance

摘要: Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have 阅读全文

posted @ 2017-05-10 13:30 xxxqqq 阅读(159) 评论(0) 推荐(0)

House Robber III

摘要: The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each hou 阅读全文

posted @ 2017-05-10 13:23 xxxqqq 阅读(131) 评论(0) 推荐(0)

House Robber II

摘要: After robbing those houses on that street, the thief has found himself a new place for his thievery so that he will not get too much attention. This t 阅读全文

posted @ 2017-05-10 13:16 xxxqqq 阅读(246) 评论(0) 推荐(0)

House Robber

摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo 阅读全文

posted @ 2017-05-10 13:08 xxxqqq 阅读(253) 评论(0) 推荐(0)

strStr

摘要: For a given source string and a target string, you should output the first index(from 0) of target string in source string. If target does not exist i 阅读全文

posted @ 2017-05-10 13:02 xxxqqq 阅读(287) 评论(0) 推荐(0)

Flatten Nested List Iterator

摘要: Given a nested list of integers, implement an iterator to flatten it. Each element is either an integer, or a list -- whose elements may also be integ 阅读全文

posted @ 2017-05-10 12:35 xxxqqq 阅读(183) 评论(0) 推荐(0)

上一页 1 2 3
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3