what did u write at the end to return the empty vector it didn't come onto the screen plss help I'm beginner to leet code please type that line on my comment reply
This is only to make it compile, theoretically you wouldnt need it due to the fact that there always is a pair but since the compiler would check that if the if case never passes nothing is returned, it would otherwise create an error.
what did u write at the end to return the empty vector it didn't come onto the screen plss help I'm beginner to leet code please type that line on my comment reply
I returned an empty vector which is “return vector{};”
This is only to make it compile, theoretically you wouldnt need it due to the fact that there always is a pair but since the compiler would check that if the if case never passes nothing is returned, it would otherwise create an error.