๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
def go(bubbles, col, row):
n = len(bubbles)
row = min(row, n - 1)
t = row
for i in range(row, -1, -1):
if bubbles[i][col] != 0:
bubbles[t][col] = bubbles[i][col]
t -= 1
for i in range(t, -1, -1):
bubbles[i][col] = 0
def solution(bubbles):
m, n = len(bubbles), len(bubbles[0])
dx, dy = [-1, 0, 1, 0], [0, 1, 0, -1]
to_explode = set()
for x in range(m):
for y in range(n):
if bubbles[x][y] == 0:
continue
c = 0
color = bubbles[x][y]
for d in range(4):
xx, yy = x + dx[d], y + dy[d]
if 0 <= xx < m and 0 <= yy < n and bubbles[xx][yy] == color:
c += 1
if c >= 2:
to_explode.add((x, y))
for d in range(4):
xx, yy = x + dx[d], y + dy[d]
if 0 <= xx < m and 0 <= yy < n and bubbles[xx][yy] == color:
to_explode.add((xx, yy))
for x, y in to_explode:
bubbles[x][y] = 0
for y in range(n):
go(bubbles, y, m - 1)
return bubbles
Visa โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
https://tally.so/r/wzZ9kE
Raja Software Labs (RSL) is a product engineering company helping clients ship high volume, high impact products used by millions of users. Some of their recent clients include LinkedIn, Google Nest, TruePill, StubHub, Vida Health, CocoTerra, etc.
Eligibility:
Degree: BTech/BE, MTech/ MSc
Graduation Year: 2020/2021/2022/2023/2024.
Branch: All branches
20+ SDE Positions are OPEN:
Mandatory Skills: Any One (C, C++, Java, Python, JavaScript, or any other)
Preferred Skills: Knowledge of data structures, algorithms, and OOPs concepts.
Selection Process:
1๏ธโฃ Assessment at AccioJob Noida Skill Centre (Noida Sector 15)
2๏ธโฃ Three Online Interviews with RSL hiring team
Details:
๐ข CTC: 7 LPA
๐ Work Location: Pune (Work from Office)
Please bring your laptop for the test.
Round 1 Location: AccioJob Noida Skill Centre: https://maps.app.goo.gl/c3dfcuogCT3Rdn7d9
Contact: Ajay Khemarya at 9319757228
Raja Software Labs (RSL) is a product engineering company helping clients ship high volume, high impact products used by millions of users. Some of their recent clients include LinkedIn, Google Nest, TruePill, StubHub, Vida Health, CocoTerra, etc.
Eligibility:
Degree: BTech/BE, MTech/ MSc
Graduation Year: 2020/2021/2022/2023/2024.
Branch: All branches
20+ SDE Positions are OPEN:
Mandatory Skills: Any One (C, C++, Java, Python, JavaScript, or any other)
Preferred Skills: Knowledge of data structures, algorithms, and OOPs concepts.
Selection Process:
1๏ธโฃ Assessment at AccioJob Noida Skill Centre (Noida Sector 15)
2๏ธโฃ Three Online Interviews with RSL hiring team
Details:
๐ข CTC: 7 LPA
๐ Work Location: Pune (Work from Office)
Please bring your laptop for the test.
Round 1 Location: AccioJob Noida Skill Centre: https://maps.app.goo.gl/c3dfcuogCT3Rdn7d9
Contact: Ajay Khemarya at 9319757228
Tally Forms
Hi there,
We are no longer accepting applications for this drive, however, we have regular job drives with our 450+ partner companies. Join our Whatsapp Community to stay updated: https://chat.whatsapp.com/KFDZSnuUOBfHbRO5SyhaBK
โค1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Tcs back with balle balle opening
Tcs codevita
Eligible batch
2024,2025,2026,2027
https://codevita.tcsapps.com/
Tcs codevita
Eligible batch
2024,2025,2026,2027
https://codevita.tcsapps.com/
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Parallel Wireless
Role: Trainee
Batch eligible: 2023 and 2024 grads
Apply: https://jobs.lever.co/parallelwireless/d3f16e94-5398-46fa-b9cd-982a2d0e0a60/
Role: Trainee
Batch eligible: 2023 and 2024 grads
Apply: https://jobs.lever.co/parallelwireless/d3f16e94-5398-46fa-b9cd-982a2d0e0a60/
long maxScoreAfterKOperations(vector<int>& arr, int k) {
priority_queue<int> maxHeap(arr.begin(), arr.end());
long q = 0;
for (int i = 0; i < k; ++i) {
long maxElement = maxHeap.top();
maxHeap.pop();
q += maxElement;
long newElement = ceil(maxElement / 3.0);
maxHeap.push(newElement);
}
return q;
}
Maximum Score โ
HP(FTE)
#include <bits/stdc++.h>
#define endl '\n'
#define ll long long int
#define pb push_back
#define pf push_front
#define F first
#define S second
const ll MOD = 1e9 + 7;
using namespace std;
ll solve(int n, int k, int m) {
vector<vector<ll>> dp(k + 1, vector<ll>(m, 0));
dp[0][0] = 1;
for (ll num = 0; num < n; num++) {
vector<vector<ll>> new_dp = dp;
for (ll size = 1; size <= k; size++) {
for (ll rem = 0; rem < m; rem++) {
ll new_rem = (rem + num) % m;
new_dp[size][new_rem] = (new_dp[size][new_rem] + dp[size - 1][rem]) % MOD;
}
}
dp = new_dp;
}
return dp[k][0];
}
THE COIN PROBLEMโ
Wissen Technology
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Hiring fresher React.js developer
Its such a good opportunity for freshers and fresh graduates those want to start their career in industry
location :- Pune
Preferred :- immediate joiners
experience :- 0 to 6 months
ctc :- 3.2 to 4.8 LPA
Drop Cv:
admin.tcd@thecorporatedemands.com
Its such a good opportunity for freshers and fresh graduates those want to start their career in industry
location :- Pune
Preferred :- immediate joiners
experience :- 0 to 6 months
ctc :- 3.2 to 4.8 LPA
Drop Cv:
admin.tcd@thecorporatedemands.com
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
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)
๐Sugar fit is hiring for Web Developer
Experience: 0 - 1 years
Expected Salary: 12-20 LPA
Apply here:
https://www.linkedin.com/jobs/view/4012392594/?alternateChannel=search
Experience: 0 - 1 years
Expected Salary: 12-20 LPA
Apply here:
https://www.linkedin.com/jobs/view/4012392594/?alternateChannel=search
Linkedin
sugar.fit hiring Web Developer in Bengaluru, Karnataka, India | LinkedIn
Posted 6:47:50 AM. Founded in 2021, Sugarfit provides a โPersonalized evidence-based path to Type 2 and Pre-Diabetesโฆ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)
Appscrip is hiring for iOS Developer
Experience: 0 - 5 years
Expected Salary: 1-6 LPA
Apply here: https://cutshort.io/job/iOS-Developer-Surat-appscrip-xDjkfCbR?applicationsource=linkedin-feedc
Experience: 0 - 5 years
Expected Salary: 1-6 LPA
Apply here: https://cutshort.io/job/iOS-Developer-Surat-appscrip-xDjkfCbR?applicationsource=linkedin-feedc
Cutshort
Use the power of Artificial Intelligence to find jobs, hire people, meet other top professionals or otherwise succeed in your career.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Wells Fargo is hiring for Intern Analyst
Experience: 0 - 1 years
Expected Salary: 4-10 LPA
Apply here: https://www.wellsfargojobs.com/en/jobs/r-397177/intern-analyst/
Experience: 0 - 1 years
Expected Salary: 4-10 LPA
Apply here: https://www.wellsfargojobs.com/en/jobs/r-397177/intern-analyst/
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
const int INF = numeric_limits<int>::max();
vector<int> getPredecessors(int graph_nodes, const vector<int> &graph_from, const vector<int> &graph_to, const vector<int> &graph_weight, int c)
{
vector<vector<pair<int, int>>> graph(graph_nodes + 1);
for (size_t i = 0; i < graph_from.size(); ++i)
{
int u = graph_from[i];
int v = graph_to[i];
int w = graph_weight[i];
graph[u].emplace_back(v, w);
graph[v].emplace_back(u, w);
}
vector<int> dist(graph_nodes + 1, INF);
vector<set<int>> predecessors(graph_nodes + 1);
priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>> min_heap;
dist[c] = 0;
min_heap.emplace(0, c);
while (!min_heap.empty())
{
int d = min_heap.top().first;
int u = min_heap.top().second;
min_heap.pop();
if (d > dist[u])
continue;
for (const auto &edge : graph[u])
{
int v = edge.first;
int weight = edge.second;
if (dist[u] + weight <= dist[v])
{
if (dist[u] + weight < dist[v])
{
dist[v] = dist[u] + weight;
predecessors[v].clear();
min_heap.emplace(dist[v], v);
}
if (u != c)
predecessors[v].insert(u);
predecessors[v].insert(predecessors[u].begin(), predecessors[u].end());
}
}
}
vector<int> predecessor_count(graph_nodes + 1, 0);
predecessor_count[c] = 0;
for (int i = 1; i <= graph_nodes; ++i)
predecessor_count[i] = predecessors[i].size();
return vector<int>(predecessor_count.begin() + 1, predecessor_count.end());
}
Count of predecessors โ
HP(FTE)
vector<int> getPredecessors(int graph_nodes, const vector<int> &graph_from, const vector<int> &graph_to, const vector<int> &graph_weight, int c)
{
vector<vector<pair<int, int>>> graph(graph_nodes + 1);
for (size_t i = 0; i < graph_from.size(); ++i)
{
int u = graph_from[i];
int v = graph_to[i];
int w = graph_weight[i];
graph[u].emplace_back(v, w);
graph[v].emplace_back(u, w);
}
vector<int> dist(graph_nodes + 1, INF);
vector<set<int>> predecessors(graph_nodes + 1);
priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>> min_heap;
dist[c] = 0;
min_heap.emplace(0, c);
while (!min_heap.empty())
{
int d = min_heap.top().first;
int u = min_heap.top().second;
min_heap.pop();
if (d > dist[u])
continue;
for (const auto &edge : graph[u])
{
int v = edge.first;
int weight = edge.second;
if (dist[u] + weight <= dist[v])
{
if (dist[u] + weight < dist[v])
{
dist[v] = dist[u] + weight;
predecessors[v].clear();
min_heap.emplace(dist[v], v);
}
if (u != c)
predecessors[v].insert(u);
predecessors[v].insert(predecessors[u].begin(), predecessors[u].end());
}
}
}
vector<int> predecessor_count(graph_nodes + 1, 0);
predecessor_count[c] = 0;
for (int i = 1; i <= graph_nodes; ++i)
predecessor_count[i] = predecessors[i].size();
return vector<int>(predecessor_count.begin() + 1, predecessor_count.end());
}
Count of predecessors โ
HP(FTE)
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <iostream>
#include <vector>
using namespace std;
class UnionFind {
public:
vector<int> parent, rank, size;
UnionFind(int n) : parent(n), rank(n, 1), size(n, 1) {
for (int i = 0; i < n; ++i) {
parent[i] = i;
}
}
int find(int x) {
if (parent[x] != x) {
parent[x] = find(parent[x]);
}
return parent[x];
}
void unionSets(int x, int y) {
int rootX = find(x);
int rootY = find(y);
if (rootX != rootY) {
if (rank[rootX] > rank[rootY]) {
parent[rootY] = rootX;
size[rootX] += size[rootY];
} else if (rank[rootX] < rank[rootY]) {
parent[rootX] = rootY;
size[rootY] += size[rootX];
} else {
parent[rootY] = rootX;
size[rootX] += size[rootY];
rank[rootX]++;
}
}
}
int getSize(int x) {
int rootX = find(x);
return size[rootX];
}
};
long long countPairs(int n, int k, vector<int>& u, vector<int>& v) {
UnionFind uf(n);
for (int i = 0; i < k; ++i) {
uf.unionSets(u[i], v[i]);
}
long long totalPairs = (long long)n * (n - 1) / 2;
vector<bool> visited(n, false);
for (int i = 0; i < n; ++i) {
int root = uf.find(i);
if (!visited[root]) {
visited[root] = true;
int clusterSize = uf.getSize(i);
if (clusterSize > 1) {
totalPairs -= (long long)clusterSize * (clusterSize - 1) / 2;
}
}
}
return totalPairs;
}