#ShuffleString Leetcode in Hindi || C++, Java Code || Shuffle String ka easiest explanation 🤑📥

preview_player
Показать описание
Hello, I am Neeraj Mahapatra,

Today we are going to discuss about #ShuffleString in C++ and Java.
You are given a string s and an integer array indices of the same length. The string s will be shuffled such that the character at the ith position moves to indices[i] in the shuffled string.
Return the shuffled string.

Sorry, I forgot to mention Time and space complexity.

TC - O(n)
SC - O(1) for C++ but O(n) for java because we are using an extra n-sized array.

Question Link:

Time stamps:
00:00 - Intro
00:11 - Question explanation
01:30 - Approach discussion
05:30 - C++ Code and more discussion
09:00 - Java Code and more discussion

#shufflestring #shufflestringleetcode #shufflestringjava #shufflestringincpp
#shufflestringinhindi #striversdesheet

Hope you like this video...
Please SUBSCRIBE, LIKE AND COMMENT...
Share to show Support..

Support us !!!.....Thanks....❤
Рекомендации по теме
visit shbcf.ru