The start

如标题这是一个开始。

我——刘芮辰,目前就读西安工业大学,计算机科学与技术专业

这是开始写博客的第一天也是在大学生活中的一个新的起点,现在已是大一的第二学期了,回首第一学期虽然忙碌,但是并没有取得太多的进步,所以明确目标开始努力。

上学期主要通过视频课的方式学习C语言,基本语法大概了解,会写一些简单的程序,但是并不扎实,一个寒假过后又忘了很多,以后以博客记录计算机学习的路程。

在编程方面的目标,还没有明确到那种一条一条的目标,但非常明确的是我喜欢程序,并且我要成为大神,大神!

至于每周要分多少时间给编程,我不知道怎么定,其实就是定了也不知道到底有没有达到,反正就是在不耽误其他学习任务的情况下尽可能多,毕竟经验都是拿时间耗出来的。

有没有想进入的IT公司?当然有,但说出来自己都觉得害怕,Apple , Google , 哈哈,这应该是梦想吧,不过梦想总是要有的嘛对吧。

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Sure, here's the implementation of the `feline_fixes` function in Python: ```python def feline_fixes(start, goal): m, n = len(start), len(goal) dp = [[0] * (n + 1) for _ in range(m + 1)] for i in range(m + 1): dp[i][0] = i for j in range(n + 1): dp[0][j] = j for i in range(1, m + 1): for j in range(1, n + 1): if start[i - 1] == goal[j - 1]: dp[i][j] = dp[i - 1][j - 1] else: dp[i][j] = 1 + min(dp[i - 1][j - 1], dp[i][j - 1], dp[i - 1][j]) return dp[m][n] ``` This function uses dynamic programming to solve the problem. The `dp` matrix is initialized with 0s, and the first row and column are filled with the distances between the empty string and the prefixes of the start and goal words. Then, the matrix is filled in row-major order using the following recurrence: - If the i-th character of start is equal to the j-th character of goal, then the distance between the prefixes of length i and j is the same as the distance between the prefixes of length i-1 and j-1. - Otherwise, we can transform the prefix of start into the prefix of goal using one of three operations: substitution (if we replace the i-th character of start with the j-th character of goal), deletion (if we delete the i-th character of start), or insertion (if we insert the j-th character of goal after the i-th character of start). We take the minimum of the costs of these three operations plus 1 (to account for the current mismatch) to get the distance between the prefixes of length i and j. Finally, the function returns the value in the bottom-right corner of the matrix, which represents the distance between the entire start and goal words.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值