当前位置:网站首页>2022.8.1-----leetcode.1374
2022.8.1-----leetcode.1374
2022-08-02 02:29:00 【路Lu727】
public String generateTheString(int n) {
String ans="";
if(n%2==1){
for(int i=0;i<n;i++){
ans+="a";
}
}else{
ans+="a";
for(int i=0;i<n-1;i++){
ans+="b";
}
}
return ans;
}
边栏推荐
- Pinduoduo leverages the consumer expo to promote the upgrading of domestic agricultural products brands and keep pace with international high-quality agricultural products
- isa指针使用详情
- Nanoprobes纳米探针丨Nanogold偶联物的特点和应用
- Unable to log in to the Westward Journey
- 1688API
- leetcode / anagram in string - some permutation of s1 string is a substring of s2
- 2022-08-01 Reflection
- 2022-08-01 安装mysql监控工具phhMyAdmin
- A good book for newcomers to the workplace
- 790. 数的三次方根
猜你喜欢
Use DBeaver for mysql data backup and recovery
How to adjust the cross cursor too small, CAD dream drawing calculation skills
Service discovery of kubernetes
Personal blog system project test
EasyGBS平台播放视频时偶尔出现播放失败是什么原因?
canal同步Mariadb到Mysql
Project Background Technology Express
Speed up your programs with bitwise operations
项目后台技术Express
Nanoprobes纳米探针丨Nanogold偶联物的特点和应用
随机推荐
微信小程序异步回调函数恶梦和解决办法
永磁同步电机36问(二)——机械量与电物理量如何转化?
【Unity入门计划】2D Game Kit:初步了解2D游戏组成
canal同步Mariadb到Mysql
53. 最小的k个数
Handwriting a blogging platform ~ Day 3
[ORB_SLAM2] SetPose, UpdatePoseMatrices
mysql 查看死锁
789. 数的范围
The state status is displayed incorrectly after the openGauss switch
记一个gorm初始化的坑
esp32经典蓝牙和单片机连接,,,手机蓝牙作为主机
拼多多借力消博会推动国内农产品品牌升级 看齐国际精品农货
十字光标太小怎么调节、CAD梦想画图算量技巧
永磁同步电机36问(三)——SVPWM代码实现
ofstream,ifstream,fstream read and write files
Personal blog system project test
Power button 1374. Generate each character string is an odd number
Centos7 install postgresql and enable remote access
29. 删除链表中重复的节点