Panda Guru LogoPanda
Guru

DSA unseen question asked in FAANG

Round 1

Questions: Given a binary string containing 0's and 1's. You can swap any two elements. Give the minimum number of swaps to make it a palindrome. Return -1 if it is not possible to make it a palindrome by swapping.

Sample Test Cases:

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.