Sorting the Sentence | Hindi | LeetCode | Problem Solving | FAANG | Shashwat
HTML-код
- Опубликовано: 22 авг 2024
- Java Plus DSA Complete Placement Course:
• Java and DSA Course Pl...
Problem Statement:
A sentence is a list of words that are separated by a single space with no leading or trailing spaces. Each word consists of lowercase and uppercase English letters.
A sentence can be shuffled by appending the 1-indexed word position to each word then rearranging the words in the sentence.
For example, the sentence "This is a sentence" can be shuffled as "sentence4 a3 is2 This1" or "is2 sentence4 This1 a3".
Given a shuffled sentence s containing no more than 9 words, reconstruct and return the original sentence.
Problem Link:
leetcode.com/p...
Solution Snippet:
github.com/Tiw...
Company Tags:
Facebook | Amazon | Microsoft | Netflix | Google | LinkedIn | Pega Systems | VMware | Adobe
Instagram Handle: (@shashwat_tiwari_st)
shashwattiwari...
#ShashwatTiwari #coding #problemsolving #leetcode #hackerrank #hackerearth #codechef #codesignal #algorithms #javaprogramming #sde #placement #programming
This is a very old video, for better sound and camera quality DSA videos, learn from the below playlist!
Java Plus DSA ( Java + DSA + Problem Solving )
ruclips.net/p/PLQ7ZAf76c0ZPVdhV1bAjFv0bQc1xHURzE
gone through all the videos for this problem , but this one is best and most sensible solution, thanks bhaiya. :)
Nice Explanation
🎇🎇🎇🎇thanks
good job!
showing error on line on number 10 in my code how to fix??
trying to solve leetcode, i keep on stumbling upon your videos. Maybe I should subscribe already.
index wale line me -'0' kyu kiya end me?
for getting the int value instead of getting string/char
@@vinaychaurasiya2206 can i convert char to int by using => -'0'