#include <iostream>
#include <vector>
#include <unordered_map>
#include <sstream>
using namespace std;
vector<string> computeParameterValue(vector<vector<string>>& sources) {
unordered_map<string, string> final_parameters;
vector<string> order_of_keys;
for (auto& source : sources) {
for (auto& pair : source) {
stringstream ss(pair);
string key, value;
getline(ss, key, ':');
getline(ss, value, ':');
if (final_parameters.find(key) == final_parameters.end()) {
order_of_keys.push_back(key);
}
final_parameters[key] = value;
}
}
vector<string> final_parameters_list;
for (auto& key : order_of_keys) {
final_parameters_list.push_back(final_parameters[key]);
}
return final_parameters_list;
}
Stock Analysis โ
#include <vector>
#include <unordered_map>
#include <sstream>
using namespace std;
vector<string> computeParameterValue(vector<vector<string>>& sources) {
unordered_map<string, string> final_parameters;
vector<string> order_of_keys;
for (auto& source : sources) {
for (auto& pair : source) {
stringstream ss(pair);
string key, value;
getline(ss, key, ':');
getline(ss, value, ':');
if (final_parameters.find(key) == final_parameters.end()) {
order_of_keys.push_back(key);
}
final_parameters[key] = value;
}
}
vector<string> final_parameters_list;
for (auto& key : order_of_keys) {
final_parameters_list.push_back(final_parameters[key]);
}
return final_parameters_list;
}
Stock Analysis โ
static int getAnagramPeriod(String input_str) {
int n = input_str.length();
for (int period = 1; period <= n; period++) {
if (n % period == 0) {
String subString = input_str.substring(0, period);
boolean valid = true;
for (int i = 0; i < n; i += period) {
if (!isAnagram(subString, input_str.substring(i, i + period))) {
valid = false;
break;
}
}
if (valid) {
return period;
}
}
}
return -1;
}
static boolean isAnagram(String str1, String str2) {
char[] charArray1 = str1.toCharArray();
char[] charArray2 = str2.toCharArray();
Arrays.sort(charArray1);
Arrays.sort(charArray2);
return Arrays.equals(charArray1, charArray2);
}
Anagram Period โ
int n = input_str.length();
for (int period = 1; period <= n; period++) {
if (n % period == 0) {
String subString = input_str.substring(0, period);
boolean valid = true;
for (int i = 0; i < n; i += period) {
if (!isAnagram(subString, input_str.substring(i, i + period))) {
valid = false;
break;
}
}
if (valid) {
return period;
}
}
}
return -1;
}
static boolean isAnagram(String str1, String str2) {
char[] charArray1 = str1.toCharArray();
char[] charArray2 = str2.toCharArray();
Arrays.sort(charArray1);
Arrays.sort(charArray2);
return Arrays.equals(charArray1, charArray2);
}
Anagram Period โ
#include <bits/stdc++.h>
using namespace std;
int getMinimumMoves(string word) {
unordered_map<char, int> freq;
int moves = 0;
for (char c : word) {
freq[c]++;
}
for (auto& entry : freq) {
moves += entry.second / 2;
}
return moves;
}
Minimum length word โ
using namespace std;
int getMinimumMoves(string word) {
unordered_map<char, int> freq;
int moves = 0;
for (char c : word) {
freq[c]++;
}
for (auto& entry : freq) {
moves += entry.second / 2;
}
return moves;
}
Minimum length word โ
๐2
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐EY is hiring for Data and Analytics
Expected Salary: 5-10 LPA
๐Apply here: https://eyglobal.yello.co/jobs/Zz403Fi4A5JV05N-0NtWSQ?job_board_id=c1riT--B2O-KySgYWsZO1Q
Expected Salary: 5-10 LPA
๐Apply here: https://eyglobal.yello.co/jobs/Zz403Fi4A5JV05N-0NtWSQ?job_board_id=c1riT--B2O-KySgYWsZO1Q
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Fractal
Role : Imagineer Program
Batch : 2023 and 2024 passout females
7.5 CGPA (or equivalent) & above across all academics
Candidate must have no active backlogs
Eligible Branches: B.Tech (Circuit branches only)
Link : https://fractal.wd1.myworkdayjobs.com/Careers/job/Imagineer-Off-Campus---Women-_SR-21906
Role : Imagineer Program
Batch : 2023 and 2024 passout females
7.5 CGPA (or equivalent) & above across all academics
Candidate must have no active backlogs
Eligible Branches: B.Tech (Circuit branches only)
Link : https://fractal.wd1.myworkdayjobs.com/Careers/job/Imagineer-Off-Campus---Women-_SR-21906
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐NatWest is Hiring for Software Engineer
Deadline: 26/02/2024
Salary: 4-6 LPA
๐Apply here: https://jobs.natwestgroup.com/jobs/13953532-software-engineer
Deadline: 26/02/2024
Salary: 4-6 LPA
๐Apply here: https://jobs.natwestgroup.com/jobs/13953532-software-engineer
Natwestgroup
Jobs | NatWest Group Careers
Search and apply for banking, retail and digital jobs as well as apprenticeships, graduate and internships all across NatWest Group.
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Zeta hiring SDET Intern - 2024 in Bengaluru, Karnataka, India | LinkedIn
Posted 9:04:52 AM. About ZetaZeta is a Next-Gen Banking Tech company that empowers banks and fintechs to launchโฆSee this and similar jobs on LinkedIn.
๐2
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Visa is hiring Software Engineer Intern
Stipend - 70k per month
๐Apply Here - https://www.visa.co.in/en_in/jobs/REF65615I
Stipend - 70k per month
๐Apply Here - https://www.visa.co.in/en_in/jobs/REF65615I
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Full Stack Intern
Stipend : โน20,000 โ โน60,000
Duration: 6 Month or more
https://wellfound.com/jobs/2672383-full-stack-intern
Stipend : โน20,000 โ โน60,000
Duration: 6 Month or more
https://wellfound.com/jobs/2672383-full-stack-intern
๐1
#include<iostream>
#include<vector>
using namespace std;
vector<int> replaceWithIndices(int size, vector<int>& arr) {
vector<int> result(size);
for (int idx = 0; idx < size; ++idx) {
int temp;
cin >> temp;
arr.push_back(temp);
}
for (int idx = 0; idx < size; ++idx) {
result[arr[idx]] = idx;
}
return result;
}
int main() {
int arr_size;
cin >> arr_size;
vector<int> arr;
vector<int> result = replaceWithIndices(arr_size, arr);
for (int idx = 0; idx < arr_size; ++idx) {
cout << result[idx] << " ";
}
return 0;
}
Barclays โ
#include<vector>
using namespace std;
vector<int> replaceWithIndices(int size, vector<int>& arr) {
vector<int> result(size);
for (int idx = 0; idx < size; ++idx) {
int temp;
cin >> temp;
arr.push_back(temp);
}
for (int idx = 0; idx < size; ++idx) {
result[arr[idx]] = idx;
}
return result;
}
int main() {
int arr_size;
cin >> arr_size;
vector<int> arr;
vector<int> result = replaceWithIndices(arr_size, arr);
for (int idx = 0; idx < arr_size; ++idx) {
cout << result[idx] << " ";
}
return 0;
}
Barclays โ
๐1
int main() {
ll n;
cin >> n;
vector<pair<ll, ll>> s(n);
for (ll i = 0; i < n; ++i) {
cin >> s[i].first;
}
ll m;
cin >> m;
for (ll i = 0; i < m; ++i) {
cin >> s[i].second;
}
sort(s.begin(), s.end(), [](const pair<ll, ll>& a, const pair<ll, ll>& b) {
return a.second < b.second;
});
ll cnt = 0;
ll lst = -1;
for (auto& seg : s) {
if (seg.first > lst) {
lst = seg.second;
++cnt;
}
}
cout << cnt << endl;
return 0;
}
Barclaysโ
ll n;
cin >> n;
vector<pair<ll, ll>> s(n);
for (ll i = 0; i < n; ++i) {
cin >> s[i].first;
}
ll m;
cin >> m;
for (ll i = 0; i < m; ++i) {
cin >> s[i].second;
}
sort(s.begin(), s.end(), [](const pair<ll, ll>& a, const pair<ll, ll>& b) {
return a.second < b.second;
});
ll cnt = 0;
ll lst = -1;
for (auto& seg : s) {
if (seg.first > lst) {
lst = seg.second;
++cnt;
}
}
cout << cnt << endl;
return 0;
}
Barclaysโ
Saregama India Limited is looking for Mumbai based full time interns for a period of 3 months
The role and responsibilities are as under -
1. Creating entries for audio & video ingestions
2. Internal coordination with various teams
3. External coordination with vendors for various deliverables
4. Keeping a track of all link documents
5. Maintaining data
6. Tracking competition
Interested candidates please share your CVs on aakanksha.salunkhe@rpsg.in
The role and responsibilities are as under -
1. Creating entries for audio & video ingestions
2. Internal coordination with various teams
3. External coordination with vendors for various deliverables
4. Keeping a track of all link documents
5. Maintaining data
6. Tracking competition
Interested candidates please share your CVs on aakanksha.salunkhe@rpsg.in
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Attention all fulltime graduates in BCA, BBA, Commerce, Science, and B.Tech (Non CS, Non IT, Non-Electronics)!
We have 10 open positions for Account Managers in Gurgaon with our leading client.
If you are a 2022-2023 passout with a minimum of 70% in all subjects
interested in working from the office, please reach out to alina@binarystarsearchx.com. Don't miss out on this opportunity!
We have 10 open positions for Account Managers in Gurgaon with our leading client.
If you are a 2022-2023 passout with a minimum of 70% in all subjects
interested in working from the office, please reach out to alina@binarystarsearchx.com. Don't miss out on this opportunity!
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Hiring Btech/ MBA Freshers (2022/2023 batch)
Profile - Trainee - IT Recruitment
Location - Hitech City
Hyderabad Work from Office - Mon-Fri
On the Job Training
#Local candidates preferred as In-person interviews are mandatory
Share your CVs at shailaja.singh@pyramidconsultinginc.com
Profile - Trainee - IT Recruitment
Location - Hitech City
Hyderabad Work from Office - Mon-Fri
On the Job Training
#Local candidates preferred as In-person interviews are mandatory
Share your CVs at shailaja.singh@pyramidconsultinginc.com
Linkedin
Sign Up | LinkedIn
500 million+ members | Manage your professional identity. Build and engage with your professional network. Access knowledge, insights and opportunities.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
EY GDS is hiring Freshers for multiple locations for Tax Analyst Role
Eligibility Criteria:
1) Passing Out Year: only 2022/ 2023
2) Highest Qualification: BCom/MCom/MBA-Finance degree
3) Should be up for Immediate Joining
https://eyglobal.yello.co/app/collect/event/LUisCgwhBFmdv8hjE3TA1A
Eligibility Criteria:
1) Passing Out Year: only 2022/ 2023
2) Highest Qualification: BCom/MCom/MBA-Finance degree
3) Should be up for Immediate Joining
https://eyglobal.yello.co/app/collect/event/LUisCgwhBFmdv8hjE3TA1A
eyglobal.yello.co
Yello Enterprise