๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.63K subscribers
5.61K photos
3 videos
95 files
10.6K links
๐ŸšฉMain Group - @SuperExams
๐Ÿ“Job Updates - @FresherEarth

๐Ÿ”ฐAuthentic Coding Solutions(with Outputs)
โš ๏ธDaily Job Updates
โš ๏ธHackathon Updates & Solutions

Buy ads: https://telega.io/c/cs_algo
Download Telegram
long long solve(int N, vector<int> A)
{
vector<long long> vec1, vec2(N);
int max_so_far = 0, max_ending_here = 0;
vec1.push_back(0);
vec2.push_back(0);
for (int i = 0; i < A.size(); i++)
{
max_so_far += A[i];
if (max_so_far > max_ending_here)
max_ending_here = max_so_far;
if (max_so_far < 0)
max_so_far = 0;
vec1.push_back(max_ending_here);
}
max_so_far = 0;
max_ending_here = 0;
for (int i = A.size() - 1; i >= 0; i--)
{
max_so_far += A[i];
if (max_so_far > max_ending_here)
{
max_ending_here = max_so_far;
}
if (max_so_far < 0)
max_so_far = 0;
vec2[i] = max_ending_here;
}
long long ans = 0;
for (int i = 0; i <= N; i++)
{
ans = max(ans, vec1[i] + vec2[i]);
}
return ans;
}
Source - unknown


Phonepe: Two Subarray (C++)โœ…
๐Ÿ‘2
//Given Array A having N integers and divisor K
int morethanNbyK(vector<int> arr, int n, int k)
{
int x = n / k;
int ans = 0;
unordered_map<int, int> freq;
for (auto i : arr)
freq[i]++;
for (auto i : freq)
{
if (i.second > x)
{
ans += i.first;
}
}
return ans;
}

Infosys โœ…
๐Ÿ‘3
Tcs Nqt Answers

Numerical ability
1 12/175
2- 37.8 kg
3-117
4-7 marks
5-8.05%
6- 198756 kg
7- 16 times
8- 786.2
9- 1100
10-22.67
11- 771.3
12-14
13-54/9 days
14-80 km
15-45โˆš2cm
16-40.456
17- 2016-17,12.24
18-2โˆš3
19-3.7
20-10

Verbals
1-Q
2- and electrical shocks
3- first bigger break
4-frightening
5- run the spaces
6. their fingertips...
7. cut corners; take matters into...
8. Create spaces, walk out through
10. CEBAD
11- PR
22- Avenue

Advanced quantitative

1-225%
2-512.8
4-56
5-8
8- 3257000

Advanced Reasoning

1-240
5- mother in law
7- 27 may Thursday cooking
9- only conclusion 2 3 and 4 follows
10-Both A and R are true and R is the correct explanation of A
๐Ÿ‘1
TCS NQT 2PM SLOT ANSWERS

1-13/1350
2- 75 3/7
3-57.6
4-63
5-4 years
6- 72
7- September
8-800
9- less 63.6%
10-24
11-1404585
12-44/9
13. 30km/h
14-66
15- 75
16-0
17- 103:99
18-1700
19-133
20-5950

Verbal Section

1- are typically above
2- but even video games
3-shortened than contacted
4- attracting traits contrast compulsory
5- temptation resorts morals appropriate
6-Put their heads together
Sit on the fence
7- get fixated
8. In the black
9. No end to himself
10. EcDAB
11. PS(not sure)
12. likes to have
13. Has ever
14. taken advantage
15. Barbecue
16. She hoped to be more fortunate the next day; and when her wishes for fine weather were answered by seeing a beautiful morning, she hardly felt a doubt of it; for a fine Sunday in Bath empties every house of its inhabitants, and all the world appears on such an occasion to walk about and tell their acquaintance what a charming day it is.
17. This much-enduring man had succeeded in banishing chewing gum after a long and stormy war, had made a bonfire of the confiscated novels and newspapers, had suppressed a private post office, had forbidden distortions of the face, nicknames, and caricatures, and done all that one man could do to keep half a hundred rebellious girls in order.
18. If a vibrating ; but if the

Reasoning Section
1-LICM
2- SFRGBYJB , ZTTQNLLI
4- data in both statement are sufficient to answer
6- neither
7- statment 1 2 and 3
8- J and F
9 KCB


Advanced quants
1- 6/30
2-3/7
3-7/20
4-34567
5-6
6-536cm^3
7-120
8-13333.33
9-16000
10-45 and 63

Advanced Reasoning
1- 21
2-57
3-31212413
4- the data in both statement
5- paternal Uncle
๐Ÿ‘1๐Ÿ˜1