Reverse each word in a given string || GeeksforGeeks || Problem of the Day || Must Watch

preview_player
Показать описание
Reverse each word in a given string || GeeksforGeeks || Problem of the Day || Must Watch

For all GFG courses
get 10% Discount using Coupon code : STUDYWITHSAUMYA

#CodingInterview #GFGPractice #GeeksforGeeks #PracticeProblems #CodingQuestions #leetcode #coding #programming #strings #coding #programming #competitiveprogramming #coding #dsa
Рекомендации по теме
Комментарии
Автор

write a program to reverse each word in a sentence ( don't use any inbuilt functions)
input : my name is john
output: ym eman si nhoj
can you give a solution to

DHEERAJKUMAR-ilzd
Автор

I have a short soluton of it in three lines in Python
def reverseWords(S):
c = S.split(".")
d = [elements[::-1] for elements in c]
ans = ".".join(d)
return ans

mriganmasaikka
Автор

Pata nhi h time kyu waste kar rahi ho program chahiye speech nhi

sunitakushwaha