Skip to content

shivam560/ReverseString

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

ReverseString

Reverse a String

You are given a string s. You need to reverse the string.

Example 1:

Input: s = Geeks Output: skeeG Example 2:

Input: s = for Output: rof Your Task:

You only need to complete the function reverseWord() that takes s as parameter and returns the reversed string.

Expected Time Complexity: O(|S|). Expected Auxiliary Space: O(1).

Constraints: 1 <= |s| <= 10000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages