文章 2022-02-16 来自:开发者社区

​LeetCode刷题实战397:整数替换

今天和大家聊的问题叫做 整数替换,我们先来看题面:https://leetcode-cn.com/problems/integer-replacement/Given a positive integer n, you can apply one of the following operations:If n is even, replace n with n / 2.If n is odd,....

 ​LeetCode刷题实战397:整数替换
文章 2022-02-16 来自:开发者社区

​LeetCode刷题实战371:两整数之和

今天和大家聊的问题叫做 两整数之和,我们先来看题面:https://leetcode-cn.com/problems/sum-of-two-integers/Given two integers a and b, return the sum of the two integers without using the operators + and -.不使用运算符 + 和 - ,计算两整数 a....

文章 2022-02-16 来自:开发者社区

​LeetCode刷题实战273:整数转换英文表示

今天和大家聊的问题叫做 整数转换英文表示,我们先来看题面:https://leetcode-cn.com/problems/integer-to-english-words/ Convert a non-negative integer num to its English words representation. 将非负整数 num 转换为其对应的英文表示。示例示例 1: ...

文章 2022-02-15 来自:开发者社区

​LeetCode刷题实战13: 罗马数字转整数

今天和大家聊的问题叫做罗马数字转整数 ,我们先来看题面:https://leetcode-cn.com/problems/roman-to-integer/题意样例示例 1: 输入: "III" 输出: 3 示例 2: 输入: "IV" 输出: 4 示例 3: 输入: "IX" 输出: 9 示例 4: 输入: "LVIII" 输出: 58 解释: L = 50, V= 5, III = 3.题解....

​LeetCode刷题实战13: 罗马数字转整数
文章 2022-02-15 来自:开发者社区

LeetCode刷题实战8:字符串转换整数

今天和大家聊的问题叫做字符串转换整数,我们先来看题面:Implement atoi which converts a string to an integer.The function first discards as many whitespace characters as necessary until the first non-whitespace character is foun....

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

算法编程

开发者社区在线编程频道官方技术圈。包含算法资源更新,周赛动态,每日一题互动。

+关注
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等