CodingHuman #Coding_Help , All exam codes, Coding solutions, accenture TCS Wipro Nagarro Persistent Cisco
588 subscribers
136 photos
310 links
We Provide free material, Coding stuff, Placement material, Handwritten Notes, previous year company questions, Job updates and many more.
Conding help.
Download Telegram
*C++14*
*Guitar strings code. Write it inside function line 6*

int guitar(int N, vector<int> x){
int ans=0;
sort(x.begin(),x.end());
reverse(x.begin(),x.end());
for(int i=0;i<x.size();i++){
ans=ans+x[i]*N;
N-=1;
}
return ans;
}

Guitar code 🔥
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👆
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.
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
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
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
⭐️Technical and HR interviews material

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
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
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