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

2014年7月6日

CTCI 1.8
摘要: Assume you have a method isSubstring which checks if one word is a substring of another. Given two strings, s1 and s2, write code to check if s2 is a ... 阅读全文
posted @ 2014-07-06 20:14 中二病程序猿 阅读(210) 评论(0) 推荐(0)
 
CTCI 1.7
摘要: Write an algorithm such that if an element in an MxN matrix is 0, its entire row and column are set to 0.There is a same problem in leetcode. We could... 阅读全文
posted @ 2014-07-06 19:43 中二病程序猿 阅读(146) 评论(0) 推荐(0)
 
CTCI 1.6
摘要: Given an image represented by an NxN matrix, where each pixel in the image is 4 bytes, write a method to rotate the image by 90 degrees. Can you do th... 阅读全文
posted @ 2014-07-06 19:08 中二病程序猿 阅读(163) 评论(0) 推荐(0)
 
CTCI 1.5
摘要: Implement a method to perform basic string compression using the counts of repeated characters. For example, the string aabcccccaaa would become a2blc... 阅读全文
posted @ 2014-07-06 12:55 中二病程序猿 阅读(165) 评论(0) 推荐(0)
 
 

公告


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