#include<bits/stdc++.h>
using namespace std;
int main(){
int n,m;
cin>>n>>m;
vector<int>ans(n);
if(n<=m){
for(int i=0;i<n;i++){
ans[i]=i+1;
}
}
else{
int k=n/m;
// int r=n%m;
int j=0;
for(int i=0;i<n;i++){
ans[i]=j+1;
j++;
j%=m;
}
}
for(int i=0;i<n;i++){
cout<<ans[i]<<" ";
}
cout<<endl;
}
King Dreams โ
Intuit
using namespace std;
int main(){
int n,m;
cin>>n>>m;
vector<int>ans(n);
if(n<=m){
for(int i=0;i<n;i++){
ans[i]=i+1;
}
}
else{
int k=n/m;
// int r=n%m;
int j=0;
for(int i=0;i<n;i++){
ans[i]=j+1;
j++;
j%=m;
}
}
for(int i=0;i<n;i++){
cout<<ans[i]<<" ";
}
cout<<endl;
}
King Dreams โ
Intuit
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company โ WPP
Role โ Data Analyst
Exp. โ Fresher
Apply Here โ https://www.linkedin.com/jobs/view/3788137565
Company โ Facets Gems Polishing Works Pvt. Ltd.
Role โ Data Analyst
Exp. โ Fresher
Apply Here โ https://www.simplyhired.co.in/job/qQdJcnUtaAA42tJ4G4XSq7sdgxkbMH8GyZl7f0FOkVHbIt64ytOUwA
Company โ Anurag Electronic Gujarat
Role โ Data Scientist
Exp. โ 0-2 yrs
Apply Here โ https://www.naukri.com/job-listings-data-scientist-phd-only-anurag-electronic-gujarat-mumbai-0-to-2-years-010421006391?src=sortby&sid=17069366294443773_1&xp=1&px=1&nignbevent_src=jobsearchDeskGNB
Company โ Atmecs
Role โ Data Scientist
Exp. โ 0-1 yr
Apply Here โ https://www.naukri.com/job-listings-data-scientist-atmecs-technologies-hyderabad-0-to-1-years-020224008496?src=sortby&sid=17069366294443773_1&xp=4&px=1&nignbevent_src=jobsearchDeskGNB
Company โ NextGen Technologies
Role โ Data Science Intern
Exp. โ Fresher
Apply Here โ https://www.linkedin.com/jobs/view/3820371899
Company โ Assurant
Role โ BI Intern
Exp. โ Fresher
Apply Here โ https://www.linkedin.com/jobs/view/3820637203
Company โ Blackcoffer
Role โ Data Science Intern
Exp. โ Fresher
Apply Here โ https://internshala.com/internship/detail/work-from-home-data-science-internship-at-blackcoffer1706929807?utm_source=cp_link&referral=web_share
Company โ Jambudweep Shodh Kendra
Role โ Data Analytics Intern
Exp. โ Fresher
Apply Here โ https://internshala.com/internship/detail/work-from-home-part-time-data-analytics-internship-at-jambudweep-shodh-kendra1706902404?utm_source=cp_link&referral=web_share
Role โ Data Analyst
Exp. โ Fresher
Apply Here โ https://www.linkedin.com/jobs/view/3788137565
Company โ Facets Gems Polishing Works Pvt. Ltd.
Role โ Data Analyst
Exp. โ Fresher
Apply Here โ https://www.simplyhired.co.in/job/qQdJcnUtaAA42tJ4G4XSq7sdgxkbMH8GyZl7f0FOkVHbIt64ytOUwA
Company โ Anurag Electronic Gujarat
Role โ Data Scientist
Exp. โ 0-2 yrs
Apply Here โ https://www.naukri.com/job-listings-data-scientist-phd-only-anurag-electronic-gujarat-mumbai-0-to-2-years-010421006391?src=sortby&sid=17069366294443773_1&xp=1&px=1&nignbevent_src=jobsearchDeskGNB
Company โ Atmecs
Role โ Data Scientist
Exp. โ 0-1 yr
Apply Here โ https://www.naukri.com/job-listings-data-scientist-atmecs-technologies-hyderabad-0-to-1-years-020224008496?src=sortby&sid=17069366294443773_1&xp=4&px=1&nignbevent_src=jobsearchDeskGNB
Company โ NextGen Technologies
Role โ Data Science Intern
Exp. โ Fresher
Apply Here โ https://www.linkedin.com/jobs/view/3820371899
Company โ Assurant
Role โ BI Intern
Exp. โ Fresher
Apply Here โ https://www.linkedin.com/jobs/view/3820637203
Company โ Blackcoffer
Role โ Data Science Intern
Exp. โ Fresher
Apply Here โ https://internshala.com/internship/detail/work-from-home-data-science-internship-at-blackcoffer1706929807?utm_source=cp_link&referral=web_share
Company โ Jambudweep Shodh Kendra
Role โ Data Analytics Intern
Exp. โ Fresher
Apply Here โ https://internshala.com/internship/detail/work-from-home-part-time-data-analytics-internship-at-jambudweep-shodh-kendra1706902404?utm_source=cp_link&referral=web_share
Linkedin
WPP hiring Data Analyst in Mumbai, Maharashtra, India | LinkedIn
Posted 10:49:39 PM. WPP is the creative transformation company. We use the power of creativity to build better futuresโฆSee this and similar jobs on LinkedIn.
โค1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐NCR VOYIX is Hiring !!
Role: Software Developer Intern
Expected Stipend: 20K - 40K per month
๐Apply here: https://ncr.wd1.myworkdayjobs.com/en-US/ext_apac/job/MUMBAI-IND/Software-Developer-Intern_R0141501
Role: Software Developer Intern
Expected Stipend: 20K - 40K per month
๐Apply here: https://ncr.wd1.myworkdayjobs.com/en-US/ext_apac/job/MUMBAI-IND/Software-Developer-Intern_R0141501
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
string makeLexicographicallySmallestPalindrome(string s) {
int n=s.length();
unordered_map<char, int> cnt;
string R = "";
for (int i = 0; i < n; i++) {
char a = s[i];
cnt[a]++;
}
for (char i = 'a'; i <= 'z'; i++) {
if (cnt[i] % 2 != 0)
R += i;
}
int l = R.length();
int j = 0;
for (int i = l - 1; i >= l / 2; i--) {
cnt[R[i]]--;
R[i] = R[j];
cnt[R[j]]++;
j++;
}
string first, middle, second;
for (char i = 'a'; i <= 'z'; i++) {
if (cnt[i] != 0) {
if (cnt[i] % 2 == 0) {
int j = 0;
while (j < cnt[i] / 2) {
first += i;
j++;
}
} else {
int j = 0;
while (j < (cnt[i] - 1) / 2) {
first += i;
j++;
}
middle += i;
}
}
}
second = first;
reverse(second.begin(), second.end());
string resultant = first + middle + second;
return resultant;
}
Palindromic Algorithm โ
๐ฅ2๐1
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <bits/stdc++.h>
using namespace std;
class Directory {
public:
unordered_map<string, unordered_set<string>> children;
Directory(vector<vector<string>>& edges) {
for (auto& edge : edges) {
children[edge[0]].insert(edge[1]);
}
}
void mkdir(string parent, string folder) {
children[parent].insert(folder);
}
void rmdir(string folder) {
children.erase(folder);
for (auto& pair : children) {
pair.second.erase(folder);
}
}
int countSubdir(string folder) {
int count = 1;
for (auto& child : children[folder]) {
count += countSubdir(child);
}
return count;
}
};
vector<int> getSubFolders(vector<vector<string>>& existingStructureEdges, vector<string>& queries) {
Directory dir(existingStructureEdges);
vector<int> results;
for (string& query : queries) {
stringstream ss(query);
string operation, x, y;
ss >> operation;
if (operation == "mkdir") {
ss >> x >> y;
dir.mkdir(x, y);
} else if (operation == "rmdir") {
ss >> x;
dir.rmdir(x);
} else if (operation == "count_subdir") {
ss >> x;
results.push_back(dir.countSubdir(x));
}
}
return results;
}
File Structure โ
โค1๐ฅ1
Solve the Equation โ
Special String โ
int min(string str){
unordered_map<char,int>mp;
for(char :str){
mp[ch]++;
}
unodered_set<int>d;
for(auto it:mp){
d.insert(it.second);
}
return d.size();
}
Music Teacher โ
Only 4 test cases pass
unordered_map<char,int>mp;
for(char :str){
mp[ch]++;
}
unodered_set<int>d;
for(auto it:mp){
d.insert(it.second);
}
return d.size();
}
Music Teacher โ
Only 4 test cases pass
Valid permutations โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Manish:
Company Name : Freshworks INC
Role : 1. Application Developer
2. Software Developer
Package Freshers: 5LPA
Package Experience (1-2 yrs) : 7.5 LPA
Skills Needed : Java , Python , HTML, CSS, Java Script, SQL and DBMS.
Location: Bangalore and Chennai (currently remote)
Passed out : 2021 - 2025
Round 1 : Coding Assessment Live in Google meet with interviewer (30 mins)
Round 2 : Technical Interview (30 mins)
Round 3 : HR Interview (20 mins)
https://docs.google.com/forms/d/e/1FAIpQLScSh9qPFBce3XvlCUbm4ZpIKuqTcN6IIsdTLPh2WXhAC4XRfQ/viewform?usp=sf_link
Company Name : Freshworks INC
Role : 1. Application Developer
2. Software Developer
Package Freshers: 5LPA
Package Experience (1-2 yrs) : 7.5 LPA
Skills Needed : Java , Python , HTML, CSS, Java Script, SQL and DBMS.
Location: Bangalore and Chennai (currently remote)
Passed out : 2021 - 2025
Round 1 : Coding Assessment Live in Google meet with interviewer (30 mins)
Round 2 : Technical Interview (30 mins)
Round 3 : HR Interview (20 mins)
https://docs.google.com/forms/d/e/1FAIpQLScSh9qPFBce3XvlCUbm4ZpIKuqTcN6IIsdTLPh2WXhAC4XRfQ/viewform?usp=sf_link
URL Hashing โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
int solve(int n, vector<int>& arr) { while (arr.size() > 1) { int len = INT_MAX; int idx = -1; for (int i = 0; i < arr.size() - 1; ++i) { int d = arr[i + 1]; if (d == 0 || arr[i] == 0) { continue;โฆ
Women Day Mathematics Challenge
C++โ
C++โ