当前位置:网站首页>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;
}边栏推荐
- 【LeetCode每日一题】——704.二分查找
- 记一个gorm初始化的坑
- Moonbeam and Project integration of the Galaxy, bring brand-new user experience for the community
- From 2023 onwards, these regions will be able to obtain a certificate with a score lower than 45 in the soft examination.
- nacos启动报错,已配置数据库,单机启动
- Oracle数据类型介绍
- to-be-read list
- ¶ Backtop back to the top is not effective
- 53. 最小的k个数
- Oracle19c安装图文教程
猜你喜欢

罗德里格斯公式(Rodrigues‘ Rotation Formula)推导

Nanoprobes丨1-巯基-(三甘醇)甲醚功能化金纳米颗粒
![[Server data recovery] Data recovery case of server Raid5 array mdisk disk offline](/img/08/d693c7e2fff8343b55ff3c1f9317c6.jpg)
[Server data recovery] Data recovery case of server Raid5 array mdisk disk offline

The failure to create a role in Dahua Westward Journey has been solved

Talking about the "horizontal, vertical and vertical" development trend of domestic ERP

Personal blog system project test

AI target segmentation capability for fast video cutout without green screen

【 wheeled odometer 】

列表常用方法

Power button 1374. Generate each character string is an odd number
随机推荐
Use DBeaver for mysql data backup and recovery
2022牛客多校三_F G
周鸿祎称微软抄袭,窃取360安全模式
Power button 1374. Generate each character string is an odd number
JVM调优实战
Moonbeam and Project integration of the Galaxy, bring brand-new user experience for the community
EasyGBS平台播放视频时偶尔出现播放失败是什么原因?
【LeetCode每日一题】——103.二叉树的锯齿形层序遍历
【LeetCode Daily Question】——704. Binary Search
Rasa 3.x 学习系列- Rasa - Issues 4873 dispatcher.utter_message 学习笔记
The failure to create a role in Dahua Westward Journey has been solved
nacos startup error, the database has been configured, stand-alone startup
微信小程序异步回调函数恶梦和解决办法
Safety (2)
Flask之路由(app.route)详解
bool框架::PosInGrid (const简历:关键点kp, int &posX, int诗句)
记一次gorm事务及调试解决mysql死锁
NAS和私有云盘的区别?1篇文章说清楚
2022-08-01 mysql/stoonedb slow SQL-Q18 analysis
to-be-read list