TCS digital 10am slot answers π
1)2,3 1
2)suggested
3)a
4) a
5.hard pressed
6.B
7.fiasco
8.Brave
9.c
10.b
11.c
β Telegram- @Coding_human
@Coding_human
1)2,3 1
2)suggested
3)a
4) a
5.hard pressed
6.B
7.fiasco
8.Brave
9.c
10.b
11.c
β Telegram- @Coding_human
@Coding_human
Please read guys ππ
Don't give money to anyone.
We are providing free help.
Stay away from rippers.
Stay alert stay safe.
Kisi ko bhi koi paisa/rs dene ki koi zaroorat nahi h,
Hum free material provide karte hai.
Aap Rippers se door the.π
If you are ripped by someone, we are not responsible at all.
Thank you
@Coding_human
Don't give money to anyone.
We are providing free help.
Stay away from rippers.
Stay alert stay safe.
Kisi ko bhi koi paisa/rs dene ki koi zaroorat nahi h,
Hum free material provide karte hai.
Aap Rippers se door the.π
If you are ripped by someone, we are not responsible at all.
Thank you
@Coding_human
β
Test of knowledge
1.double float
2.error
3.no output(c). @Coding_human
4 when braek statement executes in
5.C
β Telegram- @Coding_human
1.double float
2.error
3.no output(c). @Coding_human
4 when braek statement executes in
5.C
β Telegram- @Coding_human
awk 'BEGIN{FS="";c=0;}
{
if(NR>1) @Coding_human
{
c= perl -pe 'map{$c{$_}++}split(//,$_);$_=[sort{$c{$b}<=>$c{$a}}keys(%c)]->[0]'
if(c<3){
print $0;
}
}
else{
print "No word to pick.";}
END{}'
Python unixβ β
TCS IRA
β Telegram- @Coding_human
@Coding_human
{
if(NR>1) @Coding_human
{
c= perl -pe 'map{$c{$_}++}split(//,$_);$_=[sort{$c{$b}<=>$c{$a}}keys(%c)]->[0]'
if(c<3){
print $0;
}
}
else{
print "No word to pick.";}
END{}'
Python unixβ β
TCS IRA
β Telegram- @Coding_human
@Coding_human
def min_step(n):
if n==0: @Coding_human
return 0;
else:
if n%2==0:
return min_step(n//2)+1
else:
return min_step(n-1)+1
n=int(input())
print(min_step(n))
Minimum Steps code
Python 3
@Coding_human
@Coding_human
β οΈ Share post in ur college and telegram Group's
if n==0: @Coding_human
return 0;
else:
if n%2==0:
return min_step(n//2)+1
else:
return min_step(n-1)+1
n=int(input())
print(min_step(n))
Minimum Steps code
Python 3
@Coding_human
@Coding_human
β οΈ Share post in ur college and telegram Group's
def min_step(n):
if n==0:
return 0;
else:
if n%2==0:
return min_step(n//2)+1 @Coding_human
else:
return min_step(n-1)+1
n=int(input())
print(min_step(n))
Minimum Steps code
Python 3
β Telegram- @Coding_human
@Coding_human
if n==0:
return 0;
else:
if n%2==0:
return min_step(n//2)+1 @Coding_human
else:
return min_step(n-1)+1
n=int(input())
print(min_step(n))
Minimum Steps code
Python 3
β Telegram- @Coding_human
@Coding_human
π―TIPS TO SUCCED AT JOB INTERVIEWS
π’Donβt confuse a job interview with a job offer. @Coding_human
π’Avoid trashing your previous jobs
π’Research the company in advance
π’Mind your body language
π’Donβt expect an offer right away
π Telegram: @Coding_human
π’Donβt confuse a job interview with a job offer. @Coding_human
π’Avoid trashing your previous jobs
π’Research the company in advance
π’Mind your body language
π’Donβt expect an offer right away
π Telegram: @Coding_human
import java.util.*;
class Main
{
static int maxWater(int[] arr, int n)
{
int left = 0;
int right = n - 1;
int l_max = 0;
int r_max = 0;
int result = 0;
while (left <= right)
{
if(r_max <= l_max)
{
result += Math.max(0, r_max-arr[right]); @Coding_human
r_max = Math.max(r_max, arr[right]);
right -= 1;
}
else
{
result += Math.max(0, l_max-arr[left]);
l_max = Math.max(l_max, arr[left]);
left += 1;
}
}
return result;
}
public static void main(String []args)
{
Scanner sc=new Scanner(System in); @Coding_human
int n=sc.nextInt();
int[] array = new int[n];
for(int i=0; i<n; i++)
{
array[i]=sc.nextInt();
}
System.out.print(maxWater(array, n));
}
}
HOW MUCH WATER WILL
ACCUMULATE CODE IN JAVA
@Coding_human
@Coding_human
β οΈ Share post in ur college and telegram Group's
class Main
{
static int maxWater(int[] arr, int n)
{
int left = 0;
int right = n - 1;
int l_max = 0;
int r_max = 0;
int result = 0;
while (left <= right)
{
if(r_max <= l_max)
{
result += Math.max(0, r_max-arr[right]); @Coding_human
r_max = Math.max(r_max, arr[right]);
right -= 1;
}
else
{
result += Math.max(0, l_max-arr[left]);
l_max = Math.max(l_max, arr[left]);
left += 1;
}
}
return result;
}
public static void main(String []args)
{
Scanner sc=new Scanner(System in); @Coding_human
int n=sc.nextInt();
int[] array = new int[n];
for(int i=0; i<n; i++)
{
array[i]=sc.nextInt();
}
System.out.print(maxWater(array, n));
}
}
HOW MUCH WATER WILL
ACCUMULATE CODE IN JAVA
@Coding_human
@Coding_human
β οΈ Share post in ur college and telegram Group's
T = int(input())
Lst = []
for i in range(T):
Lst.append(int(input()))
Res = []
for i in range(T): @Coding_human
if (Lst[i]%3 == 0) or (Lst[i]%7 == 0):
Res.append("YES")
else:
Res.append("NO")
for ele in Res:
print(ele)
Shivam's Hunger code
Python3
@Coding_human
@Coding_human
β οΈ Share post in ur college and telegram Group's
Lst = []
for i in range(T):
Lst.append(int(input()))
Res = []
for i in range(T): @Coding_human
if (Lst[i]%3 == 0) or (Lst[i]%7 == 0):
Res.append("YES")
else:
Res.append("NO")
for ele in Res:
print(ele)
Shivam's Hunger code
Python3
@Coding_human
@Coding_human
β οΈ Share post in ur college and telegram Group's
πPython 3
itn= [101,102,103,104]
#it=[Milk, Cheese, Ghee, Bread]
itp=[42,50,500,40]
its=[10,20,15,16]
a=int(input ())
b=int(input()) @Coding_human
temp=None
for i in range(0,len(itn)+1):
If a==itn[i]:
temp=i
break
if b>its[i]:
print("NO STOCK")
print(its[i], "LEFT")
else:
print(float(b*itp[i]),"INR")
print(its[i]-b,"LEFT")
π₯@Coding_humanπ₯
itn= [101,102,103,104]
#it=[Milk, Cheese, Ghee, Bread]
itp=[42,50,500,40]
its=[10,20,15,16]
a=int(input ())
b=int(input()) @Coding_human
temp=None
for i in range(0,len(itn)+1):
If a==itn[i]:
temp=i
break
if b>its[i]:
print("NO STOCK")
print(its[i], "LEFT")
else:
print(float(b*itp[i]),"INR")
print(its[i]-b,"LEFT")
π₯@Coding_humanπ₯
INFOSYS Exam answer's
1)q)serval remote villages
Both I nd ii
2)q)since it's inception
Only i
3) q) the sale of
Both I nd ii
4)q)plastic soloutin
12400 level
5) q) @Coding_human
causes of server
170 percent
6) employment rate
O percent
7) q) college a, b, c
6;7
8)q)male atlhest
15;67
Infosys exam Ans
β Telegram- @Coding_human
3) q) the sale of
Both I nd ii
4)q)plastic soloutin
12400 level
5) q)
causes of server
170 percent
6) employment rate
O percent
7) q) college a, b, c
6;7
8)q)male atlhest
15;67
1)q)serval remote villages
Both I nd ii
2)q)since it's inception
Only i
3) q) the sale of
Both I nd ii
4)q)plastic soloutin
12400 level
5) q) @Coding_human
causes of server
170 percent
6) employment rate
O percent
7) q) college a, b, c
6;7
8)q)male atlhest
15;67
Infosys exam Ans
β Telegram- @Coding_human
3) q) the sale of
Both I nd ii
4)q)plastic soloutin
12400 level
5) q)
causes of server
170 percent
6) employment rate
O percent
7) q) college a, b, c
6;7
8)q)male atlhest
15;67
Infosys- logical
(34,15,64) - 57,11,79
THUT
60,15,135 - 57,19,114
A is mother of P
What is EUROPE-80
256,13 series ans- 17
β @Coding_human
https://t.me/tcs_nqt_infosys_exam_code
(34,15,64) - 57,11,79
THUT
60,15,135 - 57,19,114
A is mother of P
What is EUROPE-80
256,13 series ans- 17
β @Coding_human
https://t.me/tcs_nqt_infosys_exam_code
int longestPalindrome(vector<string> a,int n)
{
string pair1[n];
string pair2[n];
int r = 0;
for (int i = 0; i < n; i++) {
string s = a[i];
reverse(s.begin(), s.end());
for (int j = i + 1; j < n; j++) {
if (a[i] != "" && a[j] != "") {
if (s == a[j]) {
pair1[r] = a[i];
pair2[r++] = a[j];
a[i] = "";
a[j] = "";
break;
}
}
}
}
string s1 = "";
for (int i = 0; i < n; i++) {
string s = a[i];
reverse(a[i].begin(), a[i].end());
if (a[i] != "") {
if (a[i] == s) {
s1 = a[i];
break;
}
}
}
string ans = "";
// Update the answer with
// all strings of pair1
for (int i = 0; i < r; i++) {
ans = ans + pair1[i];
}@Coding_human
// Update the answer with
// palindromic string s1
if (s1 != "") {
ans = ans + s1;
}
// Update the answer with
// all strings of pair2
for (int j = r - 1; j >= 0; j--) {
ans = ans + pair2[j];
}
return ans.size();
}
β Longest palindrome
@Coding_human
{
string pair1[n];
string pair2[n];
int r = 0;
for (int i = 0; i < n; i++) {
string s = a[i];
reverse(s.begin(), s.end());
for (int j = i + 1; j < n; j++) {
if (a[i] != "" && a[j] != "") {
if (s == a[j]) {
pair1[r] = a[i];
pair2[r++] = a[j];
a[i] = "";
a[j] = "";
break;
}
}
}
}
string s1 = "";
for (int i = 0; i < n; i++) {
string s = a[i];
reverse(a[i].begin(), a[i].end());
if (a[i] != "") {
if (a[i] == s) {
s1 = a[i];
break;
}
}
}
string ans = "";
// Update the answer with
// all strings of pair1
for (int i = 0; i < r; i++) {
ans = ans + pair1[i];
}@Coding_human
// Update the answer with
// palindromic string s1
if (s1 != "") {
ans = ans + s1;
}
// Update the answer with
// all strings of pair2
for (int j = r - 1; j >= 0; j--) {
ans = ans + pair2[j];
}
return ans.size();
}
β Longest palindrome
@Coding_human
β
CAPGEMINI ANSWERS
1.protest - organised
2. Launched
3.blank3 - changed
4. It is better - interface @Coding_human
5. Nectar- guide
6. If u have - could u stop
7. Infringed-Meddeled
8. Blank 2- remark
@Coding_human
1.protest - organised
2. Launched
3.blank3 - changed
4. It is better - interface @Coding_human
5. Nectar- guide
6. If u have - could u stop
7. Infringed-Meddeled
8. Blank 2- remark
@Coding_human
β
CAPGEMINI ANSWERS
1.opposite-female
2. Preorder- 12457368
3. From the given - K
4. Sinility- vinility
5. Psuedo code - ans 2
6.sharon- no error
7. If u lead - peace on mind
8. All the bills would be sanctioned by the manager
9. She said that she had wanted to take the rest
10. Error- if u saw
11. Assume - 5432. @Coding_human
12. 17,16 - ans 5
Algorithm
1) 60
2) 2
3) 35
@Coding_human
1.opposite-female
2. Preorder- 12457368
3. From the given - K
4. Sinility- vinility
5. Psuedo code - ans 2
6.sharon- no error
7. If u lead - peace on mind
8. All the bills would be sanctioned by the manager
9. She said that she had wanted to take the rest
10. Error- if u saw
11. Assume - 5432. @Coding_human
12. 17,16 - ans 5
Algorithm
1) 60
2) 2
3) 35
@Coding_human