Second Most Repeated String | GFG | Hindi | Problem Solving | MLSA | Shashwat

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ต.ค. 2024

ความคิดเห็น • 7

  • @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 )
    th-cam.com/play/PLQ7ZAf76c0ZPVdhV1bAjFv0bQc1xHURzE.html

  • @soumya1713
    @soumya1713 2 ปีที่แล้ว

    u have good knowledge of dsa .

  • @cr7johnChan
    @cr7johnChan 2 ปีที่แล้ว +1

    Thank You Bhai!

  • @prakharsingh620
    @prakharsingh620 2 ปีที่แล้ว +1

    Can you give a simple soln of these
    I don't understand most of map functions used here

    • @shashwat_tiwari_st
      @shashwat_tiwari_st  ปีที่แล้ว +1

      Check map video, it's in Collections framework video.

  • @ajitpalsingh606
    @ajitpalsingh606 ปีที่แล้ว +1

    Video Editor also

  • @ajitpalsingh606
    @ajitpalsingh606 ปีที่แล้ว +1

    C++ code for gfg
    unordered_map frequency;
    for (string s : strings) frequency[s]++;

    class Solution
    {
    public:
    string secFrequent (string arr[], int n)
    {
    //code here.
    unordered_mapmp;
    for(int i=0;ifirst_max)
    {
    second_max=first_max;
    first_max=x.second;
    }
    else if(x.second>second_max && x.second