1)1.23...
2)1.4
3)11/6
4)108/243
5)40kmph
6) 400
7)20%
8)185
9)7.5%
10)3.33
11)1.20 each
12)profit of 6.25 %
13)4
14) 35
15) 12
16)13.5
17) 28
18)8
19.8
20.86 1/3
21.60
22.8
23.a
24.324
25.d
26 C
Join : https://t.me/infosys_exam_help_all_slots
Coding help👆
2)1.4
3)11/6
4)108/243
5)40kmph
6) 400
7)20%
8)185
9)7.5%
10)3.33
11)1.20 each
12)profit of 6.25 %
13)4
14) 35
15) 12
16)13.5
17) 28
18)8
19.8
20.86 1/3
21.60
22.8
23.a
24.324
25.d
26 C
Join : https://t.me/infosys_exam_help_all_slots
Coding help👆
INFOSYS EXAM ALL SLOTS SOLUTION GROUP 👇
Telegram - https://t.me/Coding_human
Telegram - https://t.me/infosys_exam_help_all_slots
✅ Share post in ur college Whatsapp grps.
Telegram - https://t.me/Coding_human
Telegram - https://t.me/infosys_exam_help_all_slots
✅ Share post in ur college Whatsapp grps.
int average(int n,int p){
int total=0;
for(int i=1;i<=p;i++){
total += i*n;
}
return total/p;
}
Code for average
int total=0;
for(int i=1;i<=p;i++){
total += i*n;
}
return total/p;
}
Code for average
def check(a,n)
if n==1:
return 1
a.sort()
c=0
i=0
while(i<n-1):
if a[i+1]-a[i]==1:
i=i+2
c=c+1
else:
i=i+1
if c:
return c
else:
return 1
n=int(input())
a=[]
for i in range(n):
a.append(int(input()))
print(check(a,n))
Python
Array one code
Telegram- https://t.me/Coding_human
if n==1:
return 1
a.sort()
c=0
i=0
while(i<n-1):
if a[i+1]-a[i]==1:
i=i+2
c=c+1
else:
i=i+1
if c:
return c
else:
return 1
n=int(input())
a=[]
for i in range(n):
a.append(int(input()))
print(check(a,n))
Python
Array one code
Telegram- https://t.me/Coding_human
n = int(input())
a = list(map(int,input().split()))
c = 0
for i in range(n-1):
for j in range(i+1:n):
s1 = sum(list(map(int,bin(i)[2:].split())))
s2 = sum(list(map(int,bin(j)[2:].split())))
if s1 == s2:
c += 1
print(c)
Python
Bob and Numbers Code
Telegram- https://t.me/Coding_human
a = list(map(int,input().split()))
c = 0
for i in range(n-1):
for j in range(i+1:n):
s1 = sum(list(map(int,bin(i)[2:].split())))
s2 = sum(list(map(int,bin(j)[2:].split())))
if s1 == s2:
c += 1
print(c)
Python
Bob and Numbers Code
Telegram- https://t.me/Coding_human
⭐️Technical and HR interviews material
https://bit.ly/3F98IDJ
Share our channel with your college friends : https://t.me/Coding_human
https://bit.ly/3F98IDJ
Share our channel with your college friends : https://t.me/Coding_human
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <limits.h>
#include <stdbool.h>
int main(){
int t,count=0;
scanf("%d",&t);
for(int a0 = 0; a0 < t; a0++){
count=0;
int n;
int k;
scanf("%d %d",&n,&k);
int a[n];
for(int a_i = 0; a_i < n; a_i++){
scanf("%d",&a[a_i]);
}
for(int a_i = 0; a_i < n; a_i++){
if(a[a_i]<=0)
count++;
}
if(count<k)
printf("YES\n");
else
printf("NO\n");
//count=0;
}
return 0;
}
C language
Angry professor
Telegram- https://t.me/Coding_human
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <limits.h>
#include <stdbool.h>
int main(){
int t,count=0;
scanf("%d",&t);
for(int a0 = 0; a0 < t; a0++){
count=0;
int n;
int k;
scanf("%d %d",&n,&k);
int a[n];
for(int a_i = 0; a_i < n; a_i++){
scanf("%d",&a[a_i]);
}
for(int a_i = 0; a_i < n; a_i++){
if(a[a_i]<=0)
count++;
}
if(count<k)
printf("YES\n");
else
printf("NO\n");
//count=0;
}
return 0;
}
C language
Angry professor
Telegram- https://t.me/Coding_human
int main() {
char s[100];
int i;
printf("\nEnter a string : ");
gets(s);
for (i = 0; s[i]!='\0'; i++) {
if(s[i] >= 'a' && s[i] <= 'z') {
s[i] = s[i] - 32;
}
}
printf("\nString in Upper Case = %s", s);
return 0;
}
Warehouse Code
Telegram - https://t.me/Coding_human
char s[100];
int i;
printf("\nEnter a string : ");
gets(s);
for (i = 0; s[i]!='\0'; i++) {
if(s[i] >= 'a' && s[i] <= 'z') {
s[i] = s[i] - 32;
}
}
printf("\nString in Upper Case = %s", s);
return 0;
}
Warehouse Code
Telegram - https://t.me/Coding_human
int main() {
char s[100];
int i;
printf("\nEnter a string : ");
gets(s);
for (i = 0; s[i]!='\0'; i++) {
if(s[i] >= 'a' && s[i] <= 'z') {
s[i] = s[i] - 32;
}
}
printf("\nString in Upper Case = %s", s);
return 0;
}
Warehouse Code
Telegram - https://t.me/Coding_human
char s[100];
int i;
printf("\nEnter a string : ");
gets(s);
for (i = 0; s[i]!='\0'; i++) {
if(s[i] >= 'a' && s[i] <= 'z') {
s[i] = s[i] - 32;
}
}
printf("\nString in Upper Case = %s", s);
return 0;
}
Warehouse Code
Telegram - https://t.me/Coding_human
Accenture , LTI, Accolite exam all slots help
: https://t.me/Accenture_lti_Accolite_exam
https://t.me/Coding_human
Share with your friends.
: https://t.me/Accenture_lti_Accolite_exam
https://t.me/Coding_human
Share with your friends.
Find me out code
Join https://t.me/Coding_human
Join https://t.me/Coding_human
def findSubArray(arr, n):
sum = 0
maxsize = -1
for i in range(0, n-1):
sum = -1 if(arr[i] == 0) else 1
for j in range(i + 1, n):
sum = sum + (-1) if (arr[j] == 0) else sum + 1
if (sum == 0 and maxsize < j-i + 1):
maxsize = j - i + 1
startindex = i
if (maxsize == -1):
print(0);
else:
print(maxsize);
size = int(input())
arr = list(map(int, input().split()))
findSubArray(arr, size)
Python
Largest Sub Array
Telegram - https://t.me/Coding_human
sum = 0
maxsize = -1
for i in range(0, n-1):
sum = -1 if(arr[i] == 0) else 1
for j in range(i + 1, n):
sum = sum + (-1) if (arr[j] == 0) else sum + 1
if (sum == 0 and maxsize < j-i + 1):
maxsize = j - i + 1
startindex = i
if (maxsize == -1):
print(0);
else:
print(maxsize);
size = int(input())
arr = list(map(int, input().split()))
findSubArray(arr, size)
Python
Largest Sub Array
Telegram - https://t.me/Coding_human
Join for exam and coding help
https://t.me/Accenture_lti_Accolite_exam
https://t.me/Accenture_lti_Accolite_exam