Infosys Specialist Programmer Answers


Kanal geosi va tili: ko‘rsatilmagan, ko‘rsatilmagan
Toifa: ko‘rsatilmagan


Latest Jobs and Internships are regularly uploaded here : https://t.me/placementlelo
If you want any other exam answers for free : @exam_cheating_bot
Collaborations: @growth_admin

Связанные каналы

Kanal geosi va tili
ko‘rsatilmagan, ko‘rsatilmagan
Toifa
ko‘rsatilmagan
Statistika
Postlar filtri


Nation with NaMo Mass Hiring:

Graduation Year: 2025 / 2026 / 2027 / 2028

Stipend: 10k to 25k per month
Salary: 5 to 12 LPA

Apply Link: https://www.instagram.com/reel/DDwpWEMSpxb

Must Apply ✅


Infosys SP Exam Answers will be uploaded here 👇🏻
https://telegram.me/+Xqpv6kw1D5k4OTI1

Infosys Exam Discussion Group 👇🏻
https://telegram.me/+njYA5MfMVcs5OTRl

Must join both the groups !

Share these groups with your friends 😇


Infosys Mass Hiring Internship:

Graduation Year: 2024 / 2025 / 2026 / 2027

Stipend: 25k to 50k per month

Apply Link: https://www.instagram.com/reel/DDURPp5yoBt

Like and Comment “internship” on the reel and follow the page.
Share this reel with your 3 friends.

Then, You will get the link in your dm.


TCS CodeVita All 100% Correct Answers uploaded 👇🏻
https://youtu.be/3r4pYCrpXe8
https://youtu.be/3r4pYCrpXe8

Share this with your friends 😇


TCS HackQuest Season 9 Solutions dan repost
Now, All 100% Correct TCS CodeVita Codes will be posted on both of these channels 👇🏻

1. https://telegram.me/PLACEMENTLELO

2. https://telegram.me/OFF_CAMPUS_JOBS_AND_INTERNSHIPS

Must Join both groups ✅


TCS HackQuest Season 9 Solutions dan repost
Buzz Sale
C++

TCS CodeVita Zone 2
https://telegram.me/+_hn3cBQVbGliYTI9

#include
#include
#include

using namespace std;
https://telegram.me/PLACEMENTLELO

int main() {
int n;
cin >> n;
// @PLACEMENTLELO
vector ids(n), costs(n);
for (int i = 0; i < n; i++) cin >> ids[i];
for (int i = 0; i < n; i++) cin >> costs[i];

int budget;
cin >> budget;
// @PLACEMENTLELO
int mfi = 0, mfw = 0;

for (int i = 0; i < n; i++) {
int buyCost = costs[i];
int maxQty = budget / buyCost;
// @PLACEMENTLELO
if (maxQty > 0) {
int cfi = 0;
int cfw = 0;
https://telegram.me/PLACEMENTLELO

for (int j = 0; j < n; j++) {
if (i != j && ids[i] % ids[j] == 0) {
cfi += maxQty;
cfw += costs[j] * maxQty;
}
}
// @PLACEMENTLELO
if (cfi > mfi ||
(cfi == mfi && cfw > mfw)) {
mfi = cfi;
mfw = cfw;
}
}
}
// @PLACEMENTLELO
cout


TCS HackQuest Season 9 Solutions dan repost
Desert Queen
C++

TCS CodeVita Zone 2
https://telegram.me/+_hn3cBQVbGliYTI9

#include
using namespace std;

int dir[4][2] = {{0, 1}, {1, 0}, {0, -1}, {-1, 0}};

bool isValid(int x, int y, int n, const vector& grid) {
return x >= 0 && x < n && y >= 0 && y < n && grid[x][y] != 'M';
}
// @PLACEMENTLELO
int fMW(int n, const vector& grid, pair start, pair end) {
vector placementlelo(n, vector(n, INT_MAX));
queue q;
https://telegram.me/+_hn3cBQVbGliYTI9

q.push(start);
placementlelo[start.first][start.second] = 0;

while (!q.empty()) {
auto [x, y] = q.front();
q.pop();
https://telegram.me/+_hn3cBQVbGliYTI9

for (int d = 0; d < 4; d++) {
int nx = x + dir[d][0];
int ny = y + dir[d][1];

if (isValid(nx, ny, n, grid)) {
int cost = (grid[x][y] == 'T' && grid[nx][ny] == 'T') ? 0 : 1;
if (placementlelo[x][y] + cost < placementlelo[nx][ny]) {
placementlelo[nx][ny] = placementlelo[x][y] + cost;
q.push({nx, ny});
}
}
}
}
https://telegram.me/+_hn3cBQVbGliYTI9

return placementlelo[end.first][end.second];
}
@PLACEMENTLELO
int main() {
int n;
cin >> n;
https://telegram.me/PLACEMENTLELO
vector grid(n, vector(n));
pair start, end;

for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
cin >> grid[i][j];
if (grid[i][j] == 'S') start = {i, j};
if (grid[i][j] == 'E') end = {i, j};
}
}

int result = fMW(n, grid, start, end);
cout


TCS HackQuest Season 9 Solutions dan repost
String Obsession
C++

TCS CodeVita Zone 2
100% Correct Code ✅

https://telegram.me/+_hn3cBQVbGliYTI9

#include
#include
#include
#include
https://telegram.me/+_hn3cBQVbGliYTI9

using namespace std;

int dp(string& s, vector& v, unordered_map& memo) {

if (memo.count(s)) return memo[s];
// @PLACEMENTLELO
int placementlelo = 0;
https://telegram.me/+_hn3cBQVbGliYTI9

for (auto& x : v) {
size_t pos = s.find(x);
// @PLACEMENTLELO
if (pos != string::npos) {
string new_string = s.substr(0, pos) + s.substr(pos + x.size());
placementlelo = max(placementlelo, 1 + dp(new_string, v, memo));
}
}
// @PLACEMENTLELO
return memo[s] = placementlelo;
}

int main() {
int n;
cin >> n;
// @PLACEMENTLELO
vector substrings(n);
for (int i = 0; i < n; ++i) {
cin >> substrings[i];
}
https://telegram.me/+_hn3cBQVbGliYTI9

string mainString;
cin >> mainString;
// @PLACEMENTLELO
unordered_map memo;

cout


TCS CodeVita Round 1 Zone 2:

TCS CodeVita Exam Answers will be uploaded here 👇🏻

https://telegram.me/+_hn3cBQVbGliYTI9

TCS CodeVita Discussion Group 👇🏻
https://telegram.me/+oZ4x3k1RtXdkNWU1

Must join both the groups !

Share these groups with your friends and help them get a job 😇


TCS CodeVita All 100% Correct Answers uploaded 👇🏻
https://youtu.be/a9wgj8hm20g
https://youtu.be/a9wgj8hm20g

Share this with your friends 😇


TCS CodeVita Exam Answers will be uploaded here 👇🏻
https://telegram.me/+_hn3cBQVbGliYTI9

TCS CodeVita Discussion Group 👇🏻
https://telegram.me/+oZ4x3k1RtXdkNWU1

Must join both the groups !

Share these groups with your friends and help them get a job 😇


TCS CodeVita Exam Answers Group👇🏻
https://www.linkedin.com/posts/placementlelo_tcs-tcscodevita-career-activity-7262117016117886976-be3X

Share this with your friends 😇


Set Partitioning Code
C++

All Test Cases Passed ✅
Goldman Sachs 3 November
https://telegram.me/+Xqpv6kw1D5k4OTI1

#include
#include
using namespace std;

long countCombinations(int numbers[]) {
    int n = sizeof(numbers) / sizeof(numbers[0]);
    vector stirling(n + 1, vector(n + 1, 0));
   
    stirling[0][0] = 1;

    for (int i = 1; i > numbers[i];
    }

    cout


Set Partitioning Code
Python

Goldman Sachs 3 November
https://telegram.me/+Xqpv6kw1D5k4OTI1

def bell(n):
b = [0] * (n + 1)
b[0] = 1
for i in range(1, n + 1):
b[i] = sum(b[j] * comb(i - 1, j) for j in range(i))
return b[n]

from math import comb
print(bell(len(set(map(int, input().split())))) - 1 if len(set(map(int, input().split()))) > 1 else 0)

Set Partitioning Code
Python

Goldman Sachs 3 November
https://telegram.me/PLACEMENTLELO


Send your exam questions in this group 👇🏻
https://telegram.me/+jpVv2Hi6JNgzM2Jl


Latest Off-Campus Jobs and Internships are Uploaded regularly here👇
1. https://telegram.me/PLACEMENTLELO

2. https://telegram.me/OFF_CAMPUS_JOBS_AND_INTERNSHIPS

✅ Must Join ✅

16 ta oxirgi post ko‘rsatilgan.