MCPcopy Create free account
hub / github.com/chaharnishant11/CodeIn10DSA / search

Method search

C++/Code/elementAppearsOnce.cpp:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22class Solution{
23public:
24 int search(int A[], int N){
25 //code
26 int ans = 0;
27 for(int i=0;i<N;i++){
28 ans =ans^A[i];
29 }
30 return ans;
31 }
32};
33
34// { Driver Code Starts.

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected