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

2018年11月30日

ClimbingStairs & Maximum Subarray_Leetcode
摘要: 1. You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you 阅读全文
posted @ 2018-11-30 07:11 Phinza 阅读(160) 评论(0) 推荐(0)
 
 

2018年11月21日

SQL-随笔
摘要: INNER JOIN: 关键字在表中存在至少一个匹配时返回行。如果 "Persons" 中的行在 "Orders" 中没有匹配,就不会列出这些行。 LEFT JOIN : 返回左表所有行,即使它在右表没有值 RIGHT JOIN :返回右表所有行,即使它在左表没有值 TO_DAYS() : 提取括号 阅读全文
posted @ 2018-11-21 02:04 Phinza 阅读(86) 评论(0) 推荐(0)
 
 

2018年11月12日

Two Sum_Leetcode
摘要: 1. Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input wo 阅读全文
posted @ 2018-11-12 06:16 Phinza 阅读(112) 评论(0) 推荐(0)
 
 

2018年11月8日

PYTHON字典排序
摘要: 新学习了一些关于字典的操作: keylst = list(myDict.keys()) #在list中列出所有的keysvallst = list(myDict.values()) #在list中列出所有的valsitelst = list(myDict.items()) #在list中列出所有的k 阅读全文
posted @ 2018-11-08 10:41 Phinza 阅读(303) 评论(0) 推荐(0)
 
 

2018年10月28日

单词接龙 II
摘要: 单词接龙 II (来自lintecode:https://www.lintcode.com/problem/word-ladder-ii/?_from=ladder&&fromId=1) 给出两个单词(start和end)和一个字典,找出所有从start到end的最短转换序列。 变换规则如下: 1. 阅读全文
posted @ 2018-10-28 02:36 Phinza 阅读(601) 评论(0) 推荐(0)
 
 

2018年10月24日

PYTHON算法时间空间复杂度节省TRICK
摘要: 节省时间复杂度: sorted + 跳过重复目标 +记忆搜索 例子:字符串的不同排列 import copy class Solution: def stringPermutation2(self, str): str = ''.join(sorted(str)) #部分版本的PY好像str只能以这 阅读全文
posted @ 2018-10-24 11:22 Phinza 阅读(370) 评论(0) 推荐(0)
 
 

2018年10月20日

拓扑排序|Topological Sort类算法题心得(PYTHON版)
摘要: 拓扑排序 寻找项目之间依赖顺序的过程称为拓扑排序(topological sorting)。 首先要了解有向无环图|Directed Acyclic Graph: 用字典表示:G = { 'a':'bce', 'b':'d','c':'d','d':'','e':'cd'} Key为value的前置 阅读全文
posted @ 2018-10-20 04:27 Phinza 阅读(851) 评论(0) 推荐(0)
 
 
上一页 1 2

公告


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