What is difference between set and map

sir what is difference between set and map and why we are using set here

@raghavthecoder map can store two values its of type map<int,int> h where key is first one.
set only contains one that is key set h
properties of both are same sorted and all.
you can use any one of them but set consumes less space
hope its clear if yes dont forget to hit like and mark resolved :smiley:

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.