ICode9

精准搜索请尝试: 精确搜索
  • vi编辑器常用命令2019-04-15 12:48:24

    热键 Ctrl+c 可以中断当前运行的程序 crtl+D 结束当前键盘输入,并且相当于exit,每次使用一次可退出一层环境 ctrl +u 删除当前光标所在前面的整行命令 vi文本编辑器常用命令扩展 字符串的查找 /String 向下查询字符串 ?String 向上查询字符

  • #Leetcode# 72. Edit Distance2019-04-11 19:39:38

    Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2. You have the following 3 operations permitted on a word: Insert a character Delete a character Replace a character Example 1: Input: word1 = "

  • 第三次作业2019-04-07 16:55:05

    个人信息 杨昀昊 2017*****1008 https://gitee.com/yyh0322/third_assignment/upload/master 程序分析 读文件到缓冲区 def process_file(dst): try: # 打开文件 l = open(dst, 'r') except IOError as s: print (s) return None try: # 读文件到缓冲区 bvffer=l.read() except: pr

  • leetcode 72 编辑距离 JAVA2019-04-04 16:42:05

    题目: 给定两个单词 word1 和 word2,计算出将 word1 转换成 word2 所使用的最少操作数 。 你可以对一个单词进行如下三种操作: 插入一个字符 删除一个字符 替换一个字符 示例 1: 输入: word1 = "horse", word2 = "ros"输出: 3解释: horse -> rorse (将 'h' 替换为 'r')rors

  • 动态规划 编辑距离问题2019-03-01 19:38:18

    思路参考: https://www.cnblogs.com/littlepanpc/p/7895810.html 代码参考:https://leetcode.com/problems/edit-distance/discuss/226308/C-Dynammic-programming-solution-Time%3AO(mn)-4ms-Beat-100   #define min(x, y) (((x) < (y)) ? (x) : (y))int minDistance(char* word1

  • 每日一程-19.检查输入的两个词是否构成变位词2019-02-26 23:39:22

    Author: Notus(hehe_xiao@qq.com) Create: 2019-02-26 Update: 2019-02-26 检查输入的两个词是否构成变位词 环境 Python version: 3.7.1 代码如下(a.py) ''' 检查输入的两个词是否构成变位词, 即字母相同,顺序不同。 @Author: Notus(hehe_xiao@qq.com) @Create: 20

  • vim常用快捷键整理2019-02-12 11:54:44

    搜索快捷键 /  关键字n 向下匹配N 向上匹配 移动光标快捷键 gg 命令将光标移动到文档开头,等同于 1GG 命令将光标移动到文档末尾0 或功能键[Home] 这是数字『 0 』:移动到这一行的最前面字符处 $ 或功能键[End] 移动到这一行的最后面字符处n<Enter> n 为数字。光标向下移动 n 行, 比

  • leetcode delete-operation-for-two-strings2019-02-12 11:50:47

    题目: 583. Delete Operation for Two Strings Medium 61517FavoriteShare Given two words word1 and word2, find the minimum number of steps required to make word1and word2 the same, where in each step you can delete one character in either string. Examp

  • Java解决LeetCode72题 Edit Distance2019-02-08 17:39:35

    题目描述 地址 : https://leetcode.com/problems/edit-distance/description/ 思路 使用dp[i][j]用来表示word1的0~i-1、word2的0~j-1的最小编辑距离 我们可以知道边界情况:dp[i][0] = i、dp[0][j] = j,代表从 "" 变为 dp[0~i-1] 或 dp[0][0~j-1] 所需要的次数 同时对于两个字符串

  • VIM学习笔记2019-02-03 10:38:44

    一般模式 [number]G光标移动到第n行 G光标移动到最后一行第一个字符 gg光标移动到第一行 [number][Enter]光标向下移动number行 /[word]向下查找word ?[word]向上查找word :[number1],[number2]s/[word1]/[word2]/g在number1和number2行间查找word1并替换为word2 :[number],s/[word

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有