当前位置:网站首页>Sword finger offer day 3 string (simple)
Sword finger offer day 3 string (simple)
2022-06-25 12:59:00 【Lingtree】
class Solution {
public String replaceSpace(String s) {
String str = s.replace(" ", "%20");
return str;
}
}
class Solution {
public String reverseLeftWords(String s, int n) {
String a = s.substring(0, n);
//System.out.println(a);
String b = s.substring(n, s.length());
//System.out.println(b);
String str = b + a;
//System.out.println(s);
return str;
}
}
边栏推荐
- Django框架——缓存、信号、跨站请求伪造、 跨域问题、cookie-session-token
- [Visio]平行四边形在Word中模糊问题解决
- Slice() and slice() methods of arrays in JS
- Oracle trigger error report table or view does not exist
- Reload cuda/cudnn/pytorch
- Command line garbled
- Meichuang was selected into the list of "2022 CCIA top 50 Chinese network security competitiveness"
- Three jobs! You can learn this from me (attached with graduation vlog)
- 15 basic SEO skills to improve ranking
- The editor is used every day. What is the working principle of language service protocol?
猜你喜欢

Elemntui's select+tree implements the search function

CUDA error: unspecified launch failure

The amount is verified, and two zeros are spliced by integers during echo
![[data visualization] 360 ° teaching you how to comprehensively learn visualization - Part 1](/img/36/167397ce61240036c865dd99463f1b.jpg)
[data visualization] 360 ° teaching you how to comprehensively learn visualization - Part 1

Seven competencies required by architects

2021-10-21

KDD 2022 | GraphMAE:自监督掩码图自编码器

@Scheduled implementation of scheduled tasks (concurrent execution of multiple scheduled tasks)

又是被Visdom搞崩溃的一夜

微信全文搜索技术优化
随机推荐
CUDA error: unspecified launch failure
MySQL adds, modifies, and deletes table fields, field data types, and lengths (with various actual case statements)
Capabilities required by architects
与生产环境中的 console.log 说再见
康威定律,作为架构师还不会灵活运用?
Possible problems when idea encounters errors occurred while compiling module (solved)
三入职场!你可以从我身上学到这些(附毕业Vlog)
剑指Offer 第 2 天链表(简单)
JS SMS countdown implementation (simple code)
Alibaba stability fault emergency handling process
Slice() and slice() methods of arrays in JS
[machine learning] parameter learning and gradient descent
KVM 脚本管理 —— 筑梦之路
Match regular with fixed format beginning and fixed end
ByteDance dev better technology salon is coming! Participate in the activity to win a good gift, and sign up for free within a limited time!
[flask tutorial] flask overview
Module 5 (microblog comments)
JS function exercises
Summer Ending
[visio] solving the fuzzy problem of parallelogram in word
https://leetcode-cn.com/problems/ti-huan-kong-ge-lcof/