Program to print reciprocal of letters || @GeeksforGeeks || Problem Solving || Gorakh Codes

Опубликовано: 26 Август 2023
на канале: gorakhcodes
99
like

Problem Link : https://practice.geeksforgeeks.org/pr...[]=-2&sortBy=submissions

Name : Program to print reciprocal of letters

=========================================================

Description :

Given a string S, we need to find reciprocal of it. The reciprocal of the letter is found by finding the difference between the position of the letter and the first letter ‘A’. Then decreasing the same number of steps from the last letter ‘Z’. The character that we reach after above steps is reciprocal.
Reciprocal of Z is A and vice versa because if you reverse the position of the alphabet A will be in the position of Z.
Similarly, if the letter is a small case then the first letter will be 'a' and the last letter will be 'z'. and the definition of reciprocal remains the same.

Note: If the character is not a letter its reciprocal will be the same character.

=========================================================

Please Like, Comment and Share the Video among your friends.

Timestamps:

00:00 - Intro
00:06 - Approach
03:58 - Code
05:30 - Outro

Also, Subscribe if you haven't already! :)

#datastructure,
#algorithem,
#computerscience
#prepareyourself
#cpp
#array
#geeksforgeekssolution
#leetcodesolution
#arraysolutioninhindi
#datastructureinhindi
#GFGPractice #GeeksforGeeks #PracticeProblems #codingquestions


Смотрите видео Program to print reciprocal of letters || @GeeksforGeeks || Problem Solving || Gorakh Codes онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь gorakhcodes 26 Август 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 9 раз и оно понравилось lik людям.