Python Forum
XOR solution explanation needed.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XOR solution explanation needed.
#3
(Oct-25-2020, 06:30 AM)omm Wrote: Question:
For a given list of numbers, only one digit is repeated odd number of times. Pass the list through function and return the number which is repeated odd number of times.

Sorry for the confusion. I did not write the question right earlier and I have corrected now. It has to return the only number which is repeated odd number of times (need not be an odd number). Example: [3,2,3,2,2]. Here, 2 is repeated 3 times and we need to return the number 2.

Thanks.
Reply


Messages In This Thread
XOR solution explanation needed. - by omm - Oct-25-2020, 06:30 AM
RE: XOR solution explanation needed. - by buran - Oct-25-2020, 07:13 AM
RE: XOR solution explanation needed. - by omm - Oct-25-2020, 08:45 AM
RE: XOR solution explanation needed. - by buran - Oct-25-2020, 09:21 AM
RE: XOR solution explanation needed. - by omm - Oct-25-2020, 01:03 PM
RE: XOR solution explanation needed. - by omm - Oct-26-2020, 06:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  New learner in Python, and need help on the term explanation BaicaiPy 3 2,127 Oct-15-2022, 03:31 PM
Last Post: Yoriz
  Some line code explanation Chrilo06 3 3,185 Feb-24-2022, 06:24 PM
Last Post: deanhystad
  While statement explanation alkhufu2 3 3,233 Sep-02-2020, 05:46 PM
Last Post: alkhufu2
  Output explanation AmanTripathi 2 3,587 Feb-14-2018, 03:03 PM
Last Post: AmanTripathi
  need help with some explanation vincelim99 2 4,297 Mar-24-2017, 04:12 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020