๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <iostream>
#include <queue>
#include <unordered_set>
#include <cmath>
using namespace std;
int minTime(int p) {
if (p == 0) return 0;
queue<pair<int, int>> q;
q.push({0, 0});
unordered_set<int> visited;
visited.insert(0);
while (!q.empty()) {
int current_position = q.front().first;
int time = q.front().second;
q.pop();
if (current_position == p) {
return time;
}
int step = time + 1;
int new_pos1 = current_position + step;
int new_pos2 = current_position - step;
if (visited.find(new_pos1) == visited.end()) {
visited.insert(new_pos1);
q.push({new_pos1, time + 1});
}
if (visited.find(new_pos2) == visited.end()) {
visited.insert(new_pos2);
q.push({new_pos2, time + 1});
}
}
return -1;
}
int main() {
int p;
cin >> p;
cout << minTime(p) << endl;
return 0;
}
๐1
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
int n, a, b, c;
cin >> n >> a >> b >> c;
vector<int> dp(n + 1, -1);
dp[0] = 0;
for (int i = 0; i <= n; ++i) {
if (dp[i] == -1) continue;
if (i + a <= n) dp[i + a] = max(dp[i + a], dp[i] + 1);
if (i + b <= n) dp[i + b] = max(dp[i + b], dp[i] + 1);
if (i + c <= n) dp[i + c] = max(dp[i + c], dp[i] + 1);
}
cout << dp[n] << endl;
return 0;
}
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Webtec Corporation is hiring Interns
For 2024, 2025 grads
Location: Bangalore
https://wabtec.wd1.myworkdayjobs.com/en-US/wabtec_careers/job/Bengaluru-India/Intern---Engineering_R0088571
For 2024, 2025 grads
Location: Bangalore
https://wabtec.wd1.myworkdayjobs.com/en-US/wabtec_careers/job/Bengaluru-India/Intern---Engineering_R0088571
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Quadeye is hiring for Full Stack Engineer
Experience: 0 - 2 years
Expected Salary: 20-30 LPA
Apply here: https://www.linkedin.com/jobs/view/4025961594/
Experience: 0 - 2 years
Expected Salary: 20-30 LPA
Apply here: https://www.linkedin.com/jobs/view/4025961594/
Linkedin
Quadeye hiring Full Stack Engineer in Gurgaon, Haryana, India | LinkedIn
Posted 4:22:54 AM. Quadeye is a leading algorithmic trading firm with its presence across all global exchanges. OurโฆSee this and similar jobs on LinkedIn.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Rigi is hiring for Associate DevOps Engineer
Experience: 0 - 2 years
Expected Salary: 12-20 LPA
Apply here: https://www.linkedin.com/jobs/view/4023367089/?alternateChannel=search
Experience: 0 - 2 years
Expected Salary: 12-20 LPA
Apply here: https://www.linkedin.com/jobs/view/4023367089/?alternateChannel=search
Linkedin
Rigi hiring Associate DevOps Engineer in Bangalore Urban, Karnataka, India | LinkedIn
Posted 11:01:26 AM. OverviewAt Rigi, we prioritize customer experience and are looking for a Associate Devops EngineerโฆSee this and similar jobs on LinkedIn.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Aminurmus Technology is hiring
Multiple Roles:
- SDE ( Intern/Fulltime)
- Reactjs Developer ( Intern/Fulltime)
- Dot net Developer (Intern/ Fulltime)
- Mern Stack Developer (Intern/Fulltime)
- Figma Developer Intern
- Fullstack Developer (Intern/Fulltime)
- Data Analysis
- Android Developer
Remote Opportunity
Batch: First year to Final Year
๐ปApply: https://aminurmus.com/career
Use Referral Mail Id:
rupam.bernwal@aminurmus.com
Multiple Roles:
- SDE ( Intern/Fulltime)
- Reactjs Developer ( Intern/Fulltime)
- Dot net Developer (Intern/ Fulltime)
- Mern Stack Developer (Intern/Fulltime)
- Figma Developer Intern
- Fullstack Developer (Intern/Fulltime)
- Data Analysis
- Android Developer
Remote Opportunity
Batch: First year to Final Year
๐ปApply: https://aminurmus.com/career
Use Referral Mail Id:
rupam.bernwal@aminurmus.com
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Open Positions:
1. Java Developer (Fresher)
2. UI Developer (Fresher)
3. QA Engineer (Fresher)
โ๏ธSend your updated resume to: sandhyasagarika@thrymr.net
1. Java Developer (Fresher)
2. UI Developer (Fresher)
3. QA Engineer (Fresher)
โ๏ธSend your updated resume to: sandhyasagarika@thrymr.net
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Atlassian on LinkedIn: ๐ The wait is over: Unveiling the 4th Edition of Atlassian India Women inโฆ | 28 comments
๐ The wait is over: Unveiling the 4th Edition of Atlassian India Women in Tech - Your Pathway to a Summer 2025 Internship! ๐
If you thrive in collaborativeโฆ | 28 comments on LinkedIn
If you thrive in collaborativeโฆ | 28 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Rajeshree Deotalu on LinkedIn: #autonomy #drone #hiring #sde #coders #c #python | 10 comments
!Hiring Alert
Join VECROS to Revolutionize Drone Autonomy and solve the difficult problems around safety and reliability ๐ !
At VECROS, we have been pushingโฆ | 10 comments on LinkedIn
Join VECROS to Revolutionize Drone Autonomy and solve the difficult problems around safety and reliability ๐ !
At VECROS, we have been pushingโฆ | 10 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Dipan R. on LinkedIn: #hiring #engineering #internship #kolkata #strategy #management #researchโฆ
#Hiring Undergraduates ๐
Looking to immediately hire undergraduate interns for product, research and strategy roles. Candidates pursuing Engineering /โฆ
Looking to immediately hire undergraduate interns for product, research and strategy roles. Candidates pursuing Engineering /โฆ
๐1
#include <bits/stdc++.h>
using namespace std;
vector<int> distinctOrder(int g_nodes, vector<int> g_from, vector<int> g_to) {
vector<vector<int>> adj(g_nodes + 1);
for (int i = 0; i < g_from.size(); ++i)
{
adj[g_from[i]].push_back(g_to[i]);
adj[g_to[i]].push_back(g_from[i]);
}
for (int i = 1; i <= g_nodes; ++i)
{
sort(adj[i].rbegin(), adj[i].rend());
}
vector<int> A;
vector<bool> visited(g_nodes + 1, false);
priority_queue<int> pq;
pq.push(g_nodes);
while (!pq.empty())
{
int node = pq.top();
pq.pop();
if (visited[node]) continue;
visited[node] = true;
A.push_back(node);
for (int neighbor : adj[node])
{
if (!visited[neighbor])
{
pq.push(neighbor);
}
}
}
return A;
}
Cool Graph โ
using namespace std;
vector<int> distinctOrder(int g_nodes, vector<int> g_from, vector<int> g_to) {
vector<vector<int>> adj(g_nodes + 1);
for (int i = 0; i < g_from.size(); ++i)
{
adj[g_from[i]].push_back(g_to[i]);
adj[g_to[i]].push_back(g_from[i]);
}
for (int i = 1; i <= g_nodes; ++i)
{
sort(adj[i].rbegin(), adj[i].rend());
}
vector<int> A;
vector<bool> visited(g_nodes + 1, false);
priority_queue<int> pq;
pq.push(g_nodes);
while (!pq.empty())
{
int node = pq.top();
pq.pop();
if (visited[node]) continue;
visited[node] = true;
A.push_back(node);
for (int neighbor : adj[node])
{
if (!visited[neighbor])
{
pq.push(neighbor);
}
}
}
return A;
}
Cool Graph โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
seeking an intern with a strong interest in NLP and AI.
The internship will offer hands-on experience in cutting-edge research within these areas, and there is potential for the position to transition into a full-time PhD opportunity based on performance and alignment with our project.
Interested candidates can fill this form: https://docs.google.com/forms/d/e/1FAIpQLSfQwTQbNLZ_tnimea6oyTwJw5WkhggFaEaQy8eRKF04dAW5Qg/viewform
The internship will offer hands-on experience in cutting-edge research within these areas, and there is potential for the position to transition into a full-time PhD opportunity based on performance and alignment with our project.
Interested candidates can fill this form: https://docs.google.com/forms/d/e/1FAIpQLSfQwTQbNLZ_tnimea6oyTwJw5WkhggFaEaQy8eRKF04dAW5Qg/viewform
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <iostream>
#include <unordered_map>
#include <vector>
#include <cmath>
#include <algorithm>
using namespace std;
void possible(int N, string S) {
unordered_map<char, int> freq;
for (char c : S) {
freq[c]++;
}
vector<int> a;
for (auto& entry : freq) {
a.push_back(entry.second);
}
sort(a.begin(), a.end());
int v = -1;
int target = a[a.size() / 2];
v = 0;
for (int count : a) {
v += abs(count - target);
}
cout << "YES" << endl;
cout << v / 2 << endl;
}
int main() {
int N;
string S;
cin >> N;
cin >> S;
possible(N, S);
return 0;
}
Coupa โ