I am solving this question…from leetcode…
916. Word Subsets
this is my solution…
I don’t know why it is showing error… as per my knowledege i have implemented it correct.
Doubt in this question
This is the updated code. You had not set the size of the vector and were trying to access a non existent index. I have made the changes. Look it up in the code and revert in case you face any difficulty.
If my answer was able to resolve your query, please mark the doubt as resolved.