C # Program to implement the above approach
using System ; using System . Collections . Generic ; class GFG { class pair { public int first , second ; public pair ( int first , int second ) { this . first = first ; this . second = second ; } } static void MissingPoint ( List < pair > V , int N ) { Dictionary < int , int > mp = new Dictionary < int , int > ( ) ; for ( int i = 0 ; i < V . Count ; i ++ ) { if ( mp . ContainsKey ( V [ i ] . first ) ) mp [ V [ i ] . first ] = mp [ V [ i ] . first ] + 1 ; else mp . Add ( V [ i ] . first , 1 ) ; } int x = 0 , y = 0 ; foreach ( KeyValuePair < int , int > it in mp ) { if ( it . Value % 2 == 1 ) { x = it . Key ; break ; } } mp . Clear ( ) ; for ( int i = 0 ; i < V . Count ; i ++ ) { if ( mp . ContainsKey ( V [ i ] . second ) ) mp [ V [ i ] . second ] = mp [ V [ i ] . second ] + 1 ; else mp . Add ( V [ i ] . second , 1 ) ; } foreach ( KeyValuePair < int , int > it in mp ) { if ( it . Value % 2 == 1 ) { y = it . Key ; break ; } } Console . Write ( x + " ▁ " + y ) ; }