当前位置:网站首页>Sword finger offer (44): flip the word order sequence
Sword finger offer (44): flip the word order sequence
2022-07-26 10:46:00 【Konstanch】
solution 1: String splicing
class Solution:
def ReverseSentence(self, s):
# write code here
string = s.split(' ')
result = ''
for i in string[::-1]:
result += i + ' '
return result[:-1]
边栏推荐
- Flutter编译报错 version of NDK matched the requested version 21.0.6113669. Versions available locally: 2
- Flutter TextField设置高度并且自动换行,圆角边框去除下划线
- mysql20210906
- 二叉树的遍历 递归+迭代
- RT thread learning notes (V) -- edit, download and debug programs
- Sql Server 数据库之完整性约束
- 在altium designer中禁用USBJATG
- 剑指Offer(八):跳台阶
- Kali view IP address
- Summary of the seventh class of pengge C language
猜你喜欢

0x00007FFD977C04A8 (Qt5Sqld.dll)处(位于 a.exe 中)引发的异常: 0xC0000005: 读取位置 0x0000000000000010 时发生访问冲突

Disable usbjatg in Altium Designer

按二进制数中1的个数分类

IAR sprintf 浮点 在UCOS 总格式化成0.0的问题

用两个栈实现队列

Kali view IP address

Issue 6: which mainstream programming language should college students choose
![[notes on machine learning] [building a cyclic neural network and its application] deeplearning ai course5 1st week programming(keras)](/img/02/f85da2a2f2524fb034b17ed8d06692.png)
[notes on machine learning] [building a cyclic neural network and its application] deeplearning ai course5 1st week programming(keras)

RT thread learning notes (VII) -- open the elmfat file system based on SPI flash (middle)

RT thread learning notes (VI) -- start the elmfat file system based on SPI flash (Part 1)
随机推荐
访问权限——private,public,protected
2021-08-13 learn C language with pengge - array
剑指Offer(十):矩形覆盖
Issue 6: which mainstream programming language should college students choose
使用定位实现左中右布局,中间内容自适应
剑指Offer(二十一):栈的压入、弹出序列
[leetcode daily question 2021/2/13]448. Find all the missing numbers in the array
[dectectron2] follow the official demo
winpcap 抓包函数pcap_loop(),停止问题
Oracle create index
回到顶部的几种方案(js)
Simple use of json-c Library -- converting JSON files to struct
PLC与伺服电机连接
RT thread learning notes (VIII) -- start the elmfat file system based on SPI flash (Part 2)
剑指Offer(四十三):左旋转字符串
20210807#1 C语言程序结构
鹏哥C语言——扫雷2021-08-16
【小程序】onReachBottom 事件为什么不能触发 ?(一秒搞定)
在神州IV开发板上为STemWin 5.22加入触屏驱动
2021-08-14 Sanzi chess