15-Sep-2024 Capgemini Coding Question

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

DEBUG WITH SHUBHAM

Accenture Technical Assessment Detailed Overview

14-SEP-2024 Coding Question


·

https://www.youtube.com/@DebugWithShubham

https://www.linkedin.com/in/debugwithshubham/

https://www.instagram.com/debugwithshubham/

https://topmate.io/debugwithshubham

https://t.me/debugwithshubham
Question -1 Python
def find_dividend_index(A, D, Q, R):
target_dividend = D * Q + R
for i in range(len(A)):
if A[i] == target_dividend:
return i
return -1
A = [15, 25, 35, 45, 55] # The array of dividends
D=5 # Divisor
Q=7 # Quotient
R=0 # Remainder
N = len(A) # Length of array A
index = find_dividend_index(A, D, Q, R)
print(index)

Java
C++

Python Python
Question -2
Python Java C++

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy