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

​LeetCode刷题实战434:字符串中的单词数

今天和大家聊的问题叫做 字符串中的单词数,我们先来看题面:https://leetcode-cn.com/problems/number-of-segments-in-a-string/You are given a string s, return the number of segments in the string.  A segment is defined to be a ....

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

​LeetCode刷题实战415:字符串相加

今天和大家聊的问题叫做 字符串相加,我们先来看题面:https://leetcode-cn.com/problems/add-strings/Given two non-negative integers, num1 and num2 represented as string, return the sum of num1 and num2 as a string.You must solve....

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

​LeetCode刷题实战387:字符串中的第一个唯一字符

今天和大家聊的问题叫做 字符串中的第一个唯一字符,我们先来看题面:https://leetcode-cn.com/problems/lexicographical-numbers/Given a string s, find the first non-repeating character in it and return its index. If it does not exist, re....

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

​LeetCode刷题实战205:同构字符串

今天和大家聊的问题叫做 同构字符串,我们先来看题面:https://leetcode-cn.com/problems/isomorphic-strings/Given two strings s and t, determine if they are isomorphic.Two strings s and t are isomorphic if the characters in s can....

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

​LeetCode刷题实战186:翻转字符串里的单词 II

今天和大家聊的问题叫做 翻转字符串里的单词 II  ,我们先来看题面:https://leetcode-cn.com/problems/reverse-words-in-a-string-ii/Given an input string , reverse the string word by word. Example:Input:  ["t","h","e"," ","s....

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

算法编程

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

+关注
AI助理

你好,我是AI助理

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