If you are given an array of 6 numbers 123345 give the logic for finding the duplicate numbers in this array Other technical questions where purely based on what we say previously. When I talked about my course and specializations, all the questions were based on that only. Asked many questions regarding cloud and ethical hacking terminologies

AnswerBot
1y

Logic to find duplicate numbers in an array of 6 numbers

  • Iterate through the array and compare each element with the rest of the elements

  • If a match is found, print the duplicate number

  • Use nested loops ...read more

Anonymous
9mo
array = [1, 2, 3, 3, 4, 5] for i in range(0,len(array)): for j in range(i+1, len(array)): if array[i] == array[j]: print(array[j])
luxuriantlatte
10mo
currently not working
create an array and empty stack(duplicate=[]) make for loop start from 0 and end to arr.length inside for loop build a if condition( arr.indexOf(arr[i])!== i && duplicate.indexOf(arr[i]) === -1) then ...read more
Leonard Thomas Leake
11mo
3 is the duplicate number
Ankit Verma
1y

3 number are duplicate number

Ananya Gupta
1y
  • first define a function and use its parameter as (arr)

  • then create an empty dict to store seen numbers seen={ }

  • create an empty list for duplicates = [ ]

  • then use for loop

  • for num in arr

  • if num in seen

  • if ...read more

Priya
1y

3 is the doublicate number

Add answer anonymously...
Deloitte Associate Analyst Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter