Sir in question it is asking to get lexicographical 2-D vector but how to do it row wise or column wise? It is confusing to sort 2d vector lexicographically please help sr
Lexicographic sort
You can use comparator function for this, although please explain in detail what you want to do.
you can solve this question like this also, to avoid complexity in your code
Sir I wanted to first find all the subsets of array and then check if there is such a subset sum == T and then arrange in it lexicographical order.
I was confused in lexicographical order but thanks instead of 2d vector you have taken set of vector so it will do lexi. order itself
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.