String Hashing - String Algorithms | C++ Placement Course | Lecture 39.1

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

It can be done in O(nm) if instead of sorting, we use a HashSet to store the hashes since it takes constant time and in the end return the size of the HashSet

bhavilahuja
Автор

In the second approach, hash calculation itself takes O(nm)

chiragjethva
Автор

Jiss din iss video pe aa gya mai uss din apna comment like karunga abhi to course shuru hi kiya hai 😂😂

kushagragupta
Автор

Aman is the greatest creator on youtube. love for Aman bhai

saqibamin
Автор

some lectures are private what is the reason behind it

DeepakKumar-vxtn
Автор

Can we not directly use a map<string, int> and print size of map?

deepanshsharma
Автор

we are only use the prime numbers not kuch bhi

avicious
Автор

Please complete web development playlist..

prachigarg
Автор

sir why u divide by 31^2 to calculate the hash value of na

adarshsensingh
Автор

great teaching:)
sir can u make on html php and python they are somewhat beginer languages. and i have great interest in them. that would be amazing.

tigmanshusharma
Автор

Can someone send me the code of below question....Write a program to declare three classes a1, a2, a3. The classes have private data member variable of string type. Assign the first name and surname of a student to member variable of class a1 and a2 respectively. Perform concatenation of two strings and store it to data member variable of class a3. Print the full name to the output screen using member function.

Feelings_
Автор

bhaiya web developement aage badhaiye na please
please, please

shashankshekhar
Автор

bhai sach bataun to sachi jaise bta rhe ho isme kuch smjah nai aa rha..thoda better way me explain kr skte the..same topicc better video chaiye..with different tutuor

rahulrajraj
Автор

Sir I am a student of class 10 and I am having a great intrest in Artificial intelligence and I opted it as a optional subject in my school. In that for programming, we are studying Python so can u pls make of Python coding also.
I am not in hurry but in a hope from 😊😊😊😀😊
*_Pls sir_*

urvashikashyap
Автор

are bhaiya ye simple code karlethe....apka abhut compicated code hai
#include <iostream>
#include<bits/stdc++.h>
#include<unordered_set>
using namespace std;

int main()
{
string a[6]={"aa", "ab", "aa", "b", "cc", "aa"};
unordered_set<string>m;
for(auto i:a){
m.insert(i);
}

cout<<m.size()<<endl;
return 0;
}

karthikeyamaringanti
Автор

Bhut ghatiya pdhaya 😥😥 kitte concept smjhaye hi nhi is video me😥

signaturecomics
Автор

Check the description box - Notes pehle aa gye Lecture se 😂

apoorvo
Автор

Kon kon starting me yha tak pahucha hai like kro

newvideosrishavanand