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

Комментарии • 10

  • @shashwat_tiwari_st
    @shashwat_tiwari_st  Год назад

    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

  • @krishnapalsingh3164
    @krishnapalsingh3164 2 года назад +5

    gone through all the videos for this problem , but this one is best and most sensible solution, thanks bhaiya. :)

  • @aniketgawade5135
    @aniketgawade5135 Год назад

    Nice Explanation

  • @abheermehrotra329
    @abheermehrotra329 2 года назад

    🎇🎇🎇🎇thanks

  • @shivambhardwaj3273
    @shivambhardwaj3273 2 года назад +1

    good job!

  • @Rakeshkumar-hu2ej
    @Rakeshkumar-hu2ej 29 дней назад

    showing error on line on number 10 in my code how to fix??

  • @varunsen2802
    @varunsen2802 2 года назад

    trying to solve leetcode, i keep on stumbling upon your videos. Maybe I should subscribe already.

  • @akankshapandey5081
    @akankshapandey5081 2 года назад +2

    index wale line me -'0' kyu kiya end me?

    • @vinaychaurasiya2206
      @vinaychaurasiya2206 2 года назад

      for getting the int value instead of getting string/char

    • @mohdmahtab8991
      @mohdmahtab8991 Год назад

      @@vinaychaurasiya2206 can i convert char to int by using => -'0'