shikhar.tech
BAN USER
Comments (3)
Reputation 0
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
Adding to the above answer.
if the test data is intact
else check if test data is still relevant
if servers are responding in desired turnaround time
check logs for similar kind of errors
check if application was up ,the whole time
check if machines are behaving slower due to continuos runs and memory leaks
Comment hidden because of low score. Click to expand.
0
of 0 vote
Most simplest but not efficient answer would be :
a = [7,3,5,-1,5,-11,5]
mul =0
for i in range(len(a)):
for j in range(i+1,len(a)):
if i==0:
mul = [a[i]*a[j],i,j]
if mul[0] < a[i]*a[j]:
mul = [a[i]*a[j],i,j]
print mul
mulF = mul
for i in range(len(a)):
if i not in (mul[1],mul[2]):
if mulF[0]<a[i]*mul[0]:
mulF = [a[i]*mul[0],i,mul[1],mul[2]]
print mulF
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
In Python :
- shikhar.tech March 08, 2015