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
58. All
59. 1024
60. Web page
61. All
62 Secure
63 Remote
64 Internet Ex
73 None
74 1 and 2
75 %temp%
59. 1024
60. Web page
61. All
62 Secure
63 Remote
64 Internet Ex
73 None
74 1 and 2
75 %temp%
Fibonacci code
Join : https://t.me/Coding_human
Join : https://t.me/Coding_human
Revature is hiring 2021 and 2022 batch
https://atultalksabhay.blogspot.com/2022/01/revature-is-hiring-2021-and-2022-batch.html?m=1
https://atultalksabhay.blogspot.com/2022/01/revature-is-hiring-2021-and-2022-batch.html?m=1
TCS Interview questions:
1.Tell me about your self
2. About Project
3. Are you used any programming language in your project.
4. And explain about your project in depth.
5. Tell the syntax to print He'll world
6. How to print 4th index value from a string.
7. Can we write static public instant of public static in the main method why
8. JDK, JRE, JVM
9. Why JVM is platform dependant
10. What is DBMS
11. Upto where they reached in teaching
12. Why u choose TCS ?
13. are you able to work under high pressure
14. Any questions for the interviewer.
Questions are asked by civil engineer students.
Telegram - https://t.me/Coding_human
https://t.me/Accenture_lti_Accolite_exam
1.Tell me about your self
2. About Project
3. Are you used any programming language in your project.
4. And explain about your project in depth.
5. Tell the syntax to print He'll world
6. How to print 4th index value from a string.
7. Can we write static public instant of public static in the main method why
8. JDK, JRE, JVM
9. Why JVM is platform dependant
10. What is DBMS
11. Upto where they reached in teaching
12. Why u choose TCS ?
13. are you able to work under high pressure
14. Any questions for the interviewer.
Questions are asked by civil engineer students.
Telegram - https://t.me/Coding_human
https://t.me/Accenture_lti_Accolite_exam