#3794
Reverse String Prefix
easy · 89.4% accepted · 38 likes · top 99%
Description
You are given a string s and an integer k.
Reverse the first k characters of s and return the resulting string.
Solution
easy · 89.4% accepted · 38 likes · top 99%
Description
You are given a string s and an integer k.
Reverse the first k characters of s and return the resulting string.
Solution