Sorting the strings

Kindly provide the link of problem in hackerblocks and what are pairs they were not taught and were used a lot of times in this problem

Hi @devyanshbansal123,

Link to the problem: Sorting the Strings

Pair in C++ is a container. It is used to store two values together. The values can be different (heterogeneous).

Syntax:
pair<datatype1, datatyep2> pairName;
example, pair<int,int> a;

1 Like

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.