• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests
October 31, 2023 |550 Views
SDE Sheet - Alone in a couple
  Share  2 Likes
Description
Discussion

This video is part of the Bit Manipulation section under the GFG SDE Sheet.

In this problem, we are given a situation In a party of N people, each person is denoted by an integer. Couples are represented by the same number. Find out the only single person in the party of couples.

Example :

Input: N = 5, arr = {1, 2, 3, 2, 1}
Output: 3

Explanation: Only the number 3 is single.

Try it out before watching the implementation of the problem in the video. We recommend watching the video, even if you can solve the problem. You may discover something new. All the best!!!

Do check out:-
Article: https://www.geeksforgeeks.org/find-the-number-occurring-odd-number-of-times/
Problem: https://practice.geeksforgeeks.org/problems/alone-in-couple5507/1
SDE Sheet Link: https://www.geeksforgeeks.org/sde-sheet-a-complete-guide-for-sde-preparation/

Read More