社区
C语言
帖子详情
关于2进制的问题,请帮忙
SmallBenBen
2005-03-19 05:19:36
我得到一个2进制书,5位的,怎么和已有的10个数比较,每个数对应一个字符...
用switch可以吗?
...全文
118
3
打赏
收藏
关于2进制的问题,请帮忙
我得到一个2进制书,5位的,怎么和已有的10个数比较,每个数对应一个字符... 用switch可以吗?
复制链接
扫一扫
分享
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
C_projecting
2005-03-20
打赏
举报
回复
2进制的5位数换成10进制数是在 32-63 之间
刚好是ASCII字符的控制字符和大写字母之间那些标点符号..
可以和那对应字符的10个数比较
不过你是要怎么比较?
chogo
2005-03-19
打赏
举报
回复
keyi
arrowcy
2005-03-19
打赏
举报
回复
既然有了2进制数,转换成十进制就可以比较了阿,你说每个数对应一个字符是什么意思啊?能把要求写明白一写吗?
LeetCode 72. Edit Distance 题解
本题是动态规划的经典难题,也是字符串算法的核心
问题
之一。状态定义:dp[i][j] 表示转换子串的最小操作数状态转移:考虑插入、删除、替换三种操作边界条件:空字符串的转换通过本题可以深入理解二维动态规划的状态设计和转移方程的建立。
LeetCode(72)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 the following 3 operations permitted on a wor
【LeetCode】72. Edit Distance
微信公众号 72.Edit Distance Description: Given two wordsword1andword2, find the minimum number of operations required to convertword1toword2. You have the following 3 operations permitted on a ...
LeetCode72——Edit Distance
十一月太忙,好一阵没写博客没刷题,现在事情忙完了,生活规律要逐步走入正轨。 -------------------------------------------------------------------------------------------------- LeetCode72——Edit Distance 动态规划一直不是我的强项,但是这道题恰好不知道在哪里见到过。 首先
LeetCode 72. Edit Distance
[Hard] LeetCode 72. Edit Distance 链接: https://leetcode.com/problems/edit-distance/ 题目描述: 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: I
C语言
70,040
社区成员
243,237
社区内容
发帖
与我相关
我的任务
C语言
C语言相关问题讨论
复制链接
扫一扫
分享
社区描述
C语言相关问题讨论
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章