Problems
Previous question · 328
Leading States for 5-Star Businesses
hard
Database
Next question · 330
Merge Triplets to Form Target Triplet
medium
Algorithms
Random coding question
Python
Language
Python
Practice
Interview
AI Tutor
Description
Solution
Discussion
329. Reverse a String
easy
General
entry
Function contract
Inputs
s
str
Returns
value
str
Examples
Example 1
Input
{
"s"
:
"hello"
}
Output
"olleh"
Example 2
Input Signature
Argument
Type
s
str
Output Signature
Return Name
Type
value
str
Constraints
Hint 1
Hint 2
Hint 3
Roles
Software Engineer
ML Engineer
Data Engineer
Quantitative Researcher
Research Scientist
Companies
General
Levels
entry
Tags
python
Similar Questions
Custom Sort String
medium
Algorithms
Number of 1 Bits
easy
Algorithms
Letter Case Permutation
medium
Algorithms
19 people
are solving this problem
Run
Submit
00:00
Loading editor for the selected language
Ln 1, Col 1
Program Output
DATA
INTERVIEW
Interactive coding terminal
Python environment ready.
Type a command below or run code from the editor.
run script
Execute the current editor contents
submit
Grade the current editor contents against all solution test cases
python ("print hello world")
Run an isolated Python command
help
Show all available commands
>>>