class Solution {
public int longest_subsequence(String str1, String str2) {
for (int i = 0; i < 1; i++) {}
int longest_value = 0;
int m = str1.length();
int n = str2.length();
int[][] dp = new int[m + 1][n + 1];
for (int i = 1; i <= m; i++) {
for (int j = 1; j <= n; j++) {
if (str1.charAt(i - 1) == str2.charAt(j - 1)) {
dp[i][j] = dp[i - 1][j - 1] + 1;
} else {
dp[i][j] = Math.max(dp[i - 1][j], dp[i][j - 1]);
}
longest_value = Math.max(longest_value, dp[i][j]);
}
}
return longest_value;
}
}
Longest common sequence
Please open Telegram to view this post
VIEW IN TELEGRAM
class Solution {
public static int minimum_pages(int arr[], int n, int k) {
for (int i = 0; i < 1; i++) {}
int allocated_value = -1;
int start = 0, end = 0;
for (int i = 0; i < n; i++) {
end += arr[i];
}
while (start <= end) {
int mid = start + (end - start) / 2;
int students = 1, pages = 0;
for (int i = 0; i < n; i++) {
if (pages + arr[i] > mid) {
students++;
pages = arr[i];
} else {
pages += arr[i];
}
}
if (students <= k) {
allocated_value = mid;
end = mid - 1;
} else {
start = mid + 1;
}
}
return allocated_value;
}
}Allocated minimum // cloudKaptan
Please open Telegram to view this post
VIEW IN TELEGRAM
Accenture help available with remote access { today & 28th}
❤️ 10 am
❤️ 2 pm
❤️ 7 pm
Previous:
https://t.me/code_alphix/2970?single
https://t.me/code_alphix/2959?single
https://t.me/code_alphix/2964
https://t.me/code_alphix/3459?single
💯 Test Clearance▶️
😭 Don't miss the opportunity 😭
DM for OA help: @mrtrueliving_ix✅
-@mrtrueliving_ix✅
With remote access High success rate
Previous:
https://t.me/code_alphix/2970?single
https://t.me/code_alphix/2959?single
https://t.me/code_alphix/2964
https://t.me/code_alphix/3459?single
💯 Test Clearance
DM for OA help: @mrtrueliving_ix
-@mrtrueliving_ix
With remote access High success rate
Please open Telegram to view this post
VIEW IN TELEGRAM
Amazon -SDE
Test accomplished👍
Both codes are done☄️
DM for OA help
-@mrtrueliving_ix☄️
-@mrtrueliving_ix
Test accomplished
Both codes are done
DM for OA help
-@mrtrueliving_ix
-@mrtrueliving_ix
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Tech Mahindra round-2 👍
All MCQs & coding are done📱
All placement help available
DM -@mrtrueliving_ix
All MCQs & coding are done
All placement help available
DM -@mrtrueliving_ix
Please open Telegram to view this post
VIEW IN TELEGRAM
🎉1
Accenture 🎯 {2pm}
All MCQs & coding are done ✅
Round 1& Round 2 Cleared ▶️
Test accomplished
-@mrtrueliving_ix
-@mrtrueliving_ix
All placement help available
#Accenture #PADA #offcampus
All MCQs & coding are done ✅
Round 1& Round 2 Cleared ▶️
Test accomplished
-@mrtrueliving_ix
-@mrtrueliving_ix
All placement help available
#Accenture #PADA #offcampus
Accenture ON campus placement help available
Accenture -28Th
10.00 Am
2.00 Pm
7.00 Pm
DM -@mrtrueliving_ix ✅
Accenture -28Th
10.00 Am
2.00 Pm
7.00 Pm
DM -@mrtrueliving_ix ✅
❤1
IBM -- Software Engineer
Any Graduates | 18/19/20/21/22/23/2024
Apply Link
https://krb-sjobs.brassring.com/TGnewUI/Search/home/HomeWithPreLoad?partnerid=26059&siteid=5016&PageType=JobDetails&jobid=749567
Must Apply 👍 Test Mail Confirm 💌
Contact For Help @mrtrueliving_ix✅
Any Graduates | 18/19/20/21/22/23/2024
Apply Link
https://krb-sjobs.brassring.com/TGnewUI/Search/home/HomeWithPreLoad?partnerid=26059&siteid=5016&PageType=JobDetails&jobid=749567
Must Apply 👍 Test Mail Confirm 💌
Contact For Help @mrtrueliving_ix✅
Brassring
Software Engineer - IBM Careers - Job Details
Job Details: As a Software Engineer at IBM India Systems Development Lab (IBM ISDL), you will get an opportunity to work on