Given an array of 2N+1 elements, N elements occur twice in the array. Find the element that occurs in the array only once.
You are expected to complete the function getUniqueElement(),
which takes the array as a parameter and return the unique element present in it.
Constraints:
0 ? N ? 100000 and each element would range between 0 to 10^9
Sample Test Cases:
Input #00:
1 4 2 2 3 3 1
Output #00:
4
Explanation:
In the given array only 4 doesn't occur twice.
Help me for this assignment please!?
أخي الكريم انت تخالف شروط المنتدى
اولا لا لحل الواجبات ابدا فهذا المنتدى فقط لمساعدة من يريد التعلم وليس لحل الواجبات
ثانيا اين هي محاولاتك
ثالثا لم تطرح السؤال باللغة العربية
إذا نظــرتَ نيـوب اللـّيـثِ بـارزةً فـلا تظــنَنَ أَنَّ اللـّيـــثَ يبْتسـِـــمُ
رسم المخططات البيانية بواسطة الجافا
كتاب تحليل وتصميم نظم المعلومات
الأخ الكريم
السلام عليكم ورحمة الله وبركاته
مرحباً بكم في منتدى الفريق العربي للبرمجة
تأسف إدارة المنتدى لغلق الموضوع وذلك لمخالفته قوانين المشاركات.
قواعد طرح المشاركات
/index.php?showtopic=29343
شاكرين لكم حُسن تعاونكم
C++ and Java, say, are presumably growing faster than plain C, but I bet C will still be around. ― Dennis Ritchie
~OoO~________--------------------------------------------________~OoO~
من مواضيعي :
هذا الموضوع مغلق.