Hi, this is Rupesh Yadav and I am uploading content about C & C++, which every beginner C & C++ Programmer must know.
Code On GitHub : github.com/cppnuts-yt/CppNuts
UPLOADED PLAYLISTS:
1) Design Patterns Explained In C++ 2) Multi threading 3) Data Structures 4) Algorithms 5) STL 6) C++11, C++14 7) C++ Freshers Interview Questions And Answers 8) C++ Experienced Interview Questions And Answers 9) C++ MCQ Questions And Answers 10) C Interview Questions And Answers 11) C MCQ Questions And Answers 12) Sorting Algorithms
It may be very unlikely, but is it possible to have two completely different objects with the same hash value? Is it safe to use a hash as an identifier?
this was really helpful, not sure why I don't see any likes on these videos. Also, logically it looks like that give 2 threads and each of them are incrementing, in the absence of mutex, the final count will have a max value of 2 million, because the updates are "lost". In case of mutex, there will be no inconsistency and the final count will always be 2 million.
I admire you for sharing this content with us. I have some question marks regarding the use of locks and std::function Thanks a lot. 1 - Why you acquired the mutex in the desctructor? I could not see the point since no thread is modifying the stop flag. Tried 8 threads and 1,6 milion of tasks, worked perfectly fine without the mutex acquisition. 2 - Also didnot see the point to use unlock() in the enqueue() function. Removed it. Still works totally fine. 3 - In the enqueue() function, I did not get the idea of using template. Since the type of the workers is std::queue<std::function<void()>>, it cannot get other signatured invokable objects than void(), no? I tried to pass a lambda with the signature of void(int), it failed. So what is the point of the template?
@@CppNuts actually i am learning some oops concepts where i am stucked when i got to know about Base* instance= new Derived; I don't know what does this syntax means
as per tutorial sites if we declare label before goto whatever is inside the label will not executes until goto, but in my case it is executing whatever written inside the label if i declare it before goto why???
this will happen if we don't give the solution what we are looking for, no comments no discussion even after 2 years. remembers people are coming here for the solution not to solve and report to the youtubers for that we have leetcode and many tools.
Sir, could you please make a video on how to get a entry level, job as a C++ developer as a fresher? Based on your experience, what technologies should we learn? In colleges, almost everyone seems to be focused on web development, and finding information or a roadmap for that is easy on RU-vid. However, there's a lack of guidance on becoming a software developer with C++ in India. I tried seeking advice on Quora and Stack Overflow, but opinions vary. For the last three years, I have been learning and enhancing my skills in data structures and algorithms and making projects around (5 - 6), starting from my 11th standard. Due to some family issues, I had to take admission in a BCA program, and I am currently in my first year. I searched the on LinkedIn, and almost every job posting wants a person with 3 to 4 years of work experience. If you just reply to this comment, it will be very helpful for me. I am feeling very depressed right now. Some say to focus on embedded systems with C++, others suggest databases, and core systems development. It seems to be harder to become a C++ developer compared to a web developer in the Indian market. Could you please create a roadmap for this?
One doubt here how come you are passing char in but still not showing error while compilation ,is it considering ASCII code for that or what's happening here ?
So we can have more efficient and easy way Sort the array using Array.sort(name of the array) Print( max = array(n-1) , min = array(0) Sort will be nlogn- no need to worry about.
I like the idea behind this data type but I'm kind of scared of how it functions in the background, like does it allocate memory dynamically, stores the typename, and then goes through reinterpret casts or something? I need to check an implem
Hi , I think this pointer will come in below syntax tothe class's member function implicitly: Banana const *this But you said it will come like Const banana* this
My python implementation: def is_Anagram(texta, textb): if len(texta) != len(textb): return False for char in texta: if texta.count(char) != textb.count(char): return False return True
In case of using dynamic memory it will cause a problem even if it not,it's not a good thing to allocate memory and do not deleting it, you can delete it in the main or creating for it another function, but you should delete that memory, however the case of allocating and not deleting memory in the same function is not a good behavior. Whatever thank you for your lessons, now I am preparing for the interview and your lessons are helping me