本文分类:news发布日期:2024/10/6 5:54:59
打赏

相关文章

【代码随想录Day28】

Day 28 回溯 Part04 今日任务 93.复原IP地址78.子集90.子集II 代码实现 今天的题出乎意料的简单 复原IP地址&#xff0c;和昨天的分割回文串比较像 一个是分割&#xff0c;一个是判断ip有效 List<String> result new ArrayList<>();List<String> path …

Java SE

java概述 1.什么是java java是一门面向对象的编程语言&#xff0c;作为静态面向对象编程语言&#xff0c;极好地实现了面向对象理论&#xff0c;允许程序员以优雅的思维方式进行复杂的编程 。 2.java语言有哪些特点&#xff1f; 2.1面向对象&#xff08;继承封装多多态&…

Leetcode 387. First Unique Character in a String

Problem Given a string s, find the first non-repeating character in it and return its index. If it does not exist, return -1. Algorithm Use two lists: one list is used to count the letters in “s”; the other list is the position where the letter first …

C++字符串练习

字符串长度 #include <iostream> #include <string>using namespace std; const int N 105;int main() {string str;getline(cin,str);cout << str.size(); }761. 字符串中的数字个数 #include <iostream> #include <string> using namespace…

手机版浏览

扫一扫体验

微信公众账号

微信扫一扫加关注

返回
顶部