TCS PRA 6th September || JAVA/ PYTHON || IEVOLVE ANSWERS
2.67K subscribers
385 photos
1.62K files
124 links
Download Telegram
Tcs Query Mail I'd ๐Ÿ‘‡๐Ÿ‘‡

Careers.tcshub@mail.digialm.com

Those who are getting server issue just mail them guys โ˜๏ธโ˜๏ธ
TCS PRA 6th September || JAVA/ PYTHON || IEVOLVE ANSWERS pinned ยซTcs Query Mail I'd ๐Ÿ‘‡๐Ÿ‘‡ Careers.tcshub@mail.digialm.com Those who are getting server issue just mail them guys โ˜๏ธโ˜๏ธยป
#include <iostream>
using namespace std;

// Returns sum of minimum sum subsequence
// such that one of every four consecutive
// elements is picked from arr[].
int minSum(int arr[], int n)
{
int dp[n];
if (n == 1)
return arr[0];
if (n == 2)
return min(arr[0], arr[1]);

if (n == 3)
return min(arr[0], min(arr[1], arr[2]));

if (n == 4)
return min(min(arr[0], arr[1]),
min(arr[2], arr[3]));

dp[0] = arr[0];
dp[1] = arr[1];
dp[2] = arr[2];
dp[3] = arr[3];

for (int i = 4; i < n; i++)
dp[i] = arr[i] + min(min(dp[i - 1], dp[i - 2]),
min(dp[i - 3], dp[i - 4]));

return min(min(dp[n - 1], dp[n - 2]),
min(dp[n - 4], dp[n - 3]));
}

int main()
{
int n;
cin>>n;
int arr[n];
for(int i=0;i<n;i++)
{
cin>>arr[i];
}
cout << minSum(arr, n);
return 0;
}


Paul and peter code 100% working and say thanks to me atleast
๐Ÿ“Œ๐Ÿ“ŒTCS NQT AUGUST 28th Exam โœ…โœ…

We will Provide Entire Exam Answers With PART:-A & PART:-B ๐Ÿ’ฏ๐Ÿ’ฏ

โญNinja & Digital Roles Assistance is available โญ

TCS Intake Mass Hiring For Freshers ๐Ÿ˜€ So don't miss the opportunity To become a TCSERโค๏ธ

Book ur slot ASAP and Grab ur complete Exam Accurate Answers โœ…โœ…๐Ÿ’ฏ๐Ÿ’ฏ

๐Ÿ‘‡๐Ÿ‘‡For Slot Booking ๐Ÿ‘‡๐Ÿ‘‡
@rockycoder780
@rockycoder780

Your Exam Clearence Is our responsibility and unbreakable Promise ๐Ÿ™Œ๐Ÿ™Œ

๐Ÿ“Œ๐Ÿ“Œ Telegram:
https://t.me/exam_cell_solutions_rb

https://t.me/exam_cell_solutions_rb

๐Ÿ˜‰โ˜๏ธโ˜๏ธFor proofs just scrollup our channel and see our 19th,20,21st,22nd,23rd,24th work โค๏ธ

โŒ Don't go for Free answers they are all wrong(they just give answers randomly to increase there followers) they don't care about ur exam โŒ
It was good. Answers were fast and accurate. Code also all test cases passed ๐Ÿ™Œ will recommend you to others.
It was good. Answers were fast and accurate. Code also all test cases passed ๐Ÿ™Œ will recommend you to others.
Instead of money, you guys have to proved that trust is great๐Ÿ‘
Thanks all test cases passed
Both code sucessfully excuted thank you so much
Thankyou
All test cases passed for unix and python
Thank you codeboss65 all test cases passed successful

If we need only call to you in next time
Thank you bhai for ur help๐Ÿ™
Thnk u so much for this help
All of the test cases are passed successfully thnk u so much once again
Thnk ๐Ÿ™
Thanks alot bro
Good work done by you