Тёмный

forward list In C++ 

CppNuts
Подписаться 78 тыс.
Просмотров 20 тыс.
50% 1

Опубликовано:

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 53   
@yaswanthshankar5552
@yaswanthshankar5552 4 года назад
in order to get the unique elements in a list we can first sort the list in order to get the adjacent unique elements.....and then use unique function.
@RogerTannous
@RogerTannous Год назад
True if we don't care about keeping the original value positions in the list.
@golambashar2761
@golambashar2761 4 года назад
forward_list::unique( ) is a function in c++ standard library function which is used to remove the all duplicate (**adjacent**) elements from forward list. Notice that an element is only removed from the forward_list container if it compares equal to the element immediately it. Thus, this function is especially useful for sorted lists.
@naveenpala3416
@naveenpala3416 3 года назад
Sir, your way of explaining by putting in comments is simply unique.
@CppNuts
@CppNuts 3 года назад
Thanks..
@olask7343
@olask7343 5 лет назад
Hi! 😁 It was very helpful. I hardly considered forward lists for use, but they can be helpful and they're STL! Thank you, it was quick and to the point overview of its methods. 😊
@olask7343
@olask7343 5 лет назад
I'd also add a link in the description for your previous video on emplace which you mention at 4:00, it was hell useful and it'd be easier to reference this way or putting the link directly in the video if it's not too much troublesome.
@CppNuts
@CppNuts 5 лет назад
Thanks man!! Appreciate the help..
@olask7343
@olask7343 5 лет назад
@@CppNuts No, it's me who should thank. 🙈
@237sameer1
@237sameer1 3 года назад
we need to sort the list first and then use unique alogorithm to make the list uniquie
@CppNuts
@CppNuts 3 года назад
Correct!!
@areebahmd
@areebahmd 3 года назад
the "over acting" actually makes it fun to watch
@CppNuts
@CppNuts 3 года назад
Thanks man.. you are actually watching is important.
@VikashKumar-uh4kx
@VikashKumar-uh4kx 3 года назад
You have made life so much easy.. Thanks for the great work. It will help us all. 👏👏
@CppNuts
@CppNuts 3 года назад
Thanks man..
@anmolsingh4026
@anmolsingh4026 3 года назад
Your explanation is soo easy to catch up with please keep making videos...😀
@CppNuts
@CppNuts 3 года назад
I will try my best
@SYALUS3
@SYALUS3 4 года назад
Good job Rupesh👍
@CppNuts
@CppNuts 4 года назад
Thanks man!!
@vvpChannel3112
@vvpChannel3112 4 года назад
Can we get headNode of singly linked list?
@enveraaa8414
@enveraaa8414 3 года назад
i upvote at start because i know video is going to be good.
@CppNuts
@CppNuts 3 года назад
Thanks :D
@dhanushambrose4179
@dhanushambrose4179 4 года назад
forward_listsl1; sl1.insert_after(sl1.begin()+8,10); why this is not possible? I am getting an error for this.
@golambashar2761
@golambashar2761 4 года назад
Where are the values of sl1? sl1.assign({1,2,3,4});
@chiragshilwant886
@chiragshilwant886 4 года назад
Is the complexity of unique O(n) as its just checking adjacent element ?
@karthickkumar1380
@karthickkumar1380 3 года назад
God You;
@CppNuts
@CppNuts 3 года назад
Thanks dude..
@code7434
@code7434 4 года назад
Time complexity of insert after in forward list?
@bhawika902
@bhawika902 4 года назад
whats the meaning of A(const A& lhs)
@vasans7314
@vasans7314 4 года назад
This is called copy constructor. It accepts object type of class 'A'.
@ayushgour2807
@ayushgour2807 4 года назад
A(int x=0): x{x} means what ?
@CppNuts
@CppNuts 4 года назад
Here x{x} meaning there is x data member in your class and you are initializing that data member with variable x. Search initializer list in c++. You will get it.
@who_dunnit
@who_dunnit 4 года назад
If i want to enter the elements by taking input from user, what would be the procedure?
@areebahmd
@areebahmd 3 года назад
std::forward_list list1; int count =0; while(count >x; list1.insert_after(list1.before_begin(),x); count++; }
@mohammedsuhailbasha4860
@mohammedsuhailbasha4860 5 лет назад
Amazing explaination sir.thank you so much sir.
@CppNuts
@CppNuts 5 лет назад
Thanks for appreciation dude.
@mohammedsuhailbasha4860
@mohammedsuhailbasha4860 5 лет назад
Sir if you know about any latest technologies, please make and upload that videos also sir because your videos are very helpful for me.
@CppNuts
@CppNuts 5 лет назад
Yess but so many people are waiting for DS & Algorithm videos. And i promised it so i would like to complete this first.
@sandeepkohli3281
@sandeepkohli3281 3 года назад
Bro can we use this direct list in STL in coding interviews?
@CppNuts
@CppNuts 3 года назад
Yes..
@pramodkumarkar1688
@pramodkumarkar1688 3 года назад
Fantastic :)
@CppNuts
@CppNuts 3 года назад
Many thanks!
@heathledger7291
@heathledger7291 4 года назад
good work bro
@CppNuts
@CppNuts 4 года назад
Thanks!!
@dudarambeniwal7714
@dudarambeniwal7714 4 года назад
It's great learning, thanks,but you are overreacting too much☺️☺️☺️
@CppNuts
@CppNuts 4 года назад
:D
@biswajitsahoo1456
@biswajitsahoo1456 3 года назад
.|.. off boy he is trying to make the teaching more lively by doing so
@atjhamit
@atjhamit 3 года назад
for actual unique, simply do a sort and then unique! Just saying..haha
@hustler212
@hustler212 3 года назад
Sir, no offense , but do you really have an accent or you're just faking it.
@CppNuts
@CppNuts 3 года назад
Facking it..😀 But i like it, it's fun.
@WaseemAhmad-bf2mw
@WaseemAhmad-bf2mw 4 года назад
Don't do over-acting....
@CppNuts
@CppNuts 4 года назад
hahahahah :D
@biswajitsahoo1456
@biswajitsahoo1456 3 года назад
wtfru to tell that
Далее
std list In C++ | std::list
12:45
Просмотров 55 тыс.
Multimap In C++
16:22
Просмотров 37 тыс.
Brawl Stars expliquez ça
00:11
Просмотров 6 млн
DEMONS ARE ATTACKING BRAWL STARS!!!
09:08
Просмотров 13 млн
Harder Than It Seems? 5 Minute Timer in C++
20:10
Просмотров 193 тыс.
std::unordered_multiset In C++
12:33
Просмотров 9 тыс.
std::deque In C++
12:35
Просмотров 31 тыс.
C++ STL: Vector vs List
20:09
Просмотров 48 тыс.
The size of your variables matters.
11:03
Просмотров 128 тыс.
Map In C++
13:54
Просмотров 138 тыс.