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
N=int(input())
K=int(input())
price=list(map(int,input().split()))
vol=list(map(int,input().split()))
maxvol=0
volu=0
maxvol=max(vol)
for i in range(0,N):
    if (maxvol==vol[i] and price[i]<=K):
        K=K-price[i]
        volu=maxvol
for i in range(0,N):
    for j in range(i+1,N+1):
        if (price[i]<=K and price[i]==price[j]):
            if (vol[i]>vol[j]):
                volu=volu+vol[i]
                K=K-price[i]
            else:
                volu=volu+vol[j]
                K=K-price[j]
        elif (price[i]<=K and price[i]!=price[j]):
            K=K-price[i]
            volu=volu+vol[i]
print(volu)

Python
Vijay code
Telegram - https://t.me/Coding_human
include<stdio.h>
int main()
{
    int n;
    scanf("%d",&n);
    int arr[n];
    for(int i=0;i<n;i++)
    {
        scanf("%d",&arr[i]);
    }
    int count=0;
    int num=arr[0];
    for(int i=1;i<n;i++)
    {
       if(num!=arr[i])
            count++;
    }
    printf("%d",count);
}

C Language
TCS 1st Qsn

Telgram - https://t.me/Coding_human
n=int(input())
k=int(input())
mon=[]
for i in range(n):
mon.append(int(input()))
mi=min(mon)
ma=max(mon)
ma=ma-k
mi=mi+k
diff=ma-mi
print(diff)

Python
Reddington has invested Code
Telegram - https://t.me/Coding_human
Verbal

1) Let's sit on the problem for a
2) few have
3)was penturbed
4) CBAD
5) cutting corners,red tap
6)1. Means of livelihood of 2. Draped in the morning mist...
7)2143
8)1342
9)P and S
10)focus at the large sites with ways to engaged your prospects
11)A) depriving B)desired c) revert d) exceeding
12)1)to walk the extra mile 2)show the bull the red flag
13)4132
14)lose sense of time
Verbal https://t.me/Coding_human
15) virtuoso
16) anatomy consists human of; However, over the skin
17) bcbea
18) pq
19)he had come to DC in order...
20) Director Sato lacked the fox with..
21)what ever she lacked in physical charm...
22)the Roman emperor, Marcus aurelius
23)stockdare employed a tactic that many....
24)the clarity of belief that that mind will role
25)it is the ability to test your own moral courage whenfaced...


Telegram - https://t.me/Coding_human
TCS ADVANCED quants

1) 31/45
2)
3) q²-2pr/pr²
4) 6
5) 15
6) 3
7) 40
8) 4
9) west bengal
10) 5

Telegram - https://t.me/Coding_human
int(input())
a=[int(input()) for i in range(n)]
d={}
for i in a:
if i not in d:
d[i]=1
else:
d[i]+=1
v=list(d.values())
k=list(d.keys())
for i in range(len(v)):
if v[i]>1:
print(k[i])
break
else:
print(-1)
break

Python
Mike code

Telegram - https://t.me/Coding_human
include<stdio.h>
int main()
{
    int n;
    scanf("%d",&n);
    int arr[n];
    for(int i=0;i<n;i++)
    {
        scanf("%d",&arr[i]);
    }
    int count=0;
    int num=arr[0];
    for(int i=1;i<n;i++)
    {
       if(num!=arr[i])
            count++;
    }
    printf("%d",count);
}

Alice

C language

Telegram - https://t.me/Coding_human
Advance

1.0.91
2.2/3 √30
3.pr5/p7(3pr-q3)
4.a=1,b=8
5.25
6.90
7.101
8.toxicogy
9.3071
10.96

Telegram - https://t.me/Coding_human
Verbal

1- really mean
2- uk economy
3- need of the hour
4- recognise
5- DABC
6- the Indian cricket had
7- no great adventure
8- all the glitters
9-3421
10-ABCDE
11-PQ
12- at a relatively low cost
13- doesn't always agree
14.flagrant
15- Flock
16-CBADE
17.abdec
18-QR
19-On the base
20-Kushang and kishita
21- Others
22- Special Gov
24- common
25-from black banks

Telegram - https://t.me/Coding_human
1) NL
2) A, b and d
3) C
4) Data in statement ii
6) Either statement
7) Mothers (B)
8) x for (C)
9) Social
10) The case is to be
11) Rejected
12) Both l & ll
13) Both
14) Only l is

Telegram - https://t.me/Coding_human
#include <iostream>
#include<bits/stdc++.h>
using namespace std;

int main() {
    int n1,n2,i,j,c;
    cin>>n1>>n2;
    int a[n1],b[n2];
     set<int> s;
    for(i=0;i<n1;i++)
    {
        cin>>a[i];
        s.insert(a[i]);
    }
   
    for(i=0;i<n2;i++)
    {
        cin>>b[i];
        s.insert(b[i]);
    }
    vector<int> v(s.begin(),s.end());
    c=s.size();
    if(c%2==1)
    {
        c=c/2;
        cout<<v[c];
    }
    else
    {
        n1=c/2;
        n2=n1-1;
        float q=(v[n1]+v[n2])/2.0;
        cout<<q;
    }
   
   
return 0;
}

C++ Language
Storeroom code
Telegram - https://t.me/Coding_human
Tcs answers

1.1
2.0.16
3.1-5 power32
4.450
5.19
6.9
7.500,20
8.12
9.2:1
10.28.24 loss
11.650
12.24
13.7/12

Telegram - https://t.me/Coding_human