def photoAlbum(idx, identity):
n = len(idx)
album = []
for i in range(n):
album.insert(idx[i], identity[i])
return album
Photo Album โ
Python 3
๐1๐1
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
public static int solution(int[] A, int[] B) {
int MAX_SIDE = 500;
int[][] frequency = new int[MAX_SIDE + 1][MAX_SIDE + 1];
for(int i = 0; i < A.length; i++) {
int a = A[i];
int b = B[i];
if(a < 1 || a > MAX_SIDE || b < 1 || b > MAX_SIDE) {
continue;
}
frequency[a][b]++;
if(a != b) {
frequency[b][a]++;
}
}
int maxSubset = 0;
for(int s = 1; s <= MAX_SIDE; s++) {
for(int t = 1; t <= MAX_SIDE; t++) {
if(t + 1 > MAX_SIDE) {
if(frequency[s][t] > maxSubset) {
maxSubset = frequency[s][t];
}
} else {
int currentCount = frequency[s][t] + frequency[s][t + 1];
if(currentCount > maxSubset) {
maxSubset = currentCount;
}
}
}
}
return maxSubset;
}
Bentley โ
๐2
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Wellfound
Java Backend Engineer( 0-2 yrs Exp only ) at FreightFox โข Bengaluru
FreightFox is hiring a Java Backend Engineer( 0-2 yrs Exp only ) in Bengaluru - Apply now on Wellfound!
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Intuit
Role ; SDE Internship
Batch : 2026 passouts
Link : https://jobs.intuit.com/job/bengaluru/software-engineer-1-summer-intern/27595/70945687136
Role ; SDE Internship
Batch : 2026 passouts
Link : https://jobs.intuit.com/job/bengaluru/software-engineer-1-summer-intern/27595/70945687136
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐GE HealthCare is hiring!
Position: Trainee Engineer
Experienc๏ปฟe: Freshers (0 -1 Years)
Location: Bengaluru, India
๐ปApply Link: https://careers.gehealthcare.com/global/en/job/R4013874/Trainee-Engineer
Position: Trainee Engineer
Experienc๏ปฟe: Freshers (0 -1 Years)
Location: Bengaluru, India
๐ปApply Link: https://careers.gehealthcare.com/global/en/job/R4013874/Trainee-Engineer
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company : Intuit
Role : SDE 1
Batch : 2025
CTC : 32 LPA
Apply : https://jobs.intuit.com/job/bengaluru/software-engineer-1/27595/70945687168
Role : SDE 1
Batch : 2025
CTC : 32 LPA
Apply : https://jobs.intuit.com/job/bengaluru/software-engineer-1/27595/70945687168
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
// LOTTERY
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <cstring>
using namespace std;
int dp[1001][1001][26]; // Adjust size as needed based on the problem constraints
int getCharWithDiff(char ch, int diff) {
int code = ch - 'a';
return ((code + diff + 26) % 26) + 'a';
}
int dfs(const string &lotteryID, const string &winnerID, int i, int j, int remainingK, int m, int n) {
if (i == m || j == n) return 0;
if (remainingK < 0) return 0;
if (dp[i][j][remainingK] != -1) return dp[i][j][remainingK];
int result = max(
dfs(lotteryID, winnerID, i + 1, j, remainingK, m, n),
dfs(lotteryID, winnerID, i, j + 1, remainingK, m, n)
);
if (lotteryID[i] == winnerID[j]) {
result = max(result, 1 + dfs(lotteryID, winnerID, i + 1, j + 1, remainingK, m, n));
} else if (remainingK > 0) {
for (int diff = 1; diff <= min(25, remainingK); ++diff) {
if (getCharWithDiff(lotteryID[i], diff) == winnerID[j] ||
getCharWithDiff(lotteryID[i], -diff) == winnerID[j]) {
result = max(result, 1 + dfs(lotteryID, winnerID, i + 1, j + 1, remainingK - diff, m, n));
break;
}
}
}
dp[i][j][remainingK] = result;
return result;
}
int maxLCSAfterOperations(const string &lotteryID, const string &winnerID, int k) {
int m = lotteryID.size();
int n = winnerID.size();
memset(dp, -1, sizeof(dp));
return dfs(lotteryID, winnerID, 0, 0, k, m, n);
}
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <iostream>
#include <vector>
#include <string>
using namespace std;
string findStringFromIcp(vector<vector<int>>& icp) {
int n = icp.size();
for (int i = 0; i < n; i++) {
if (icp[i][i] != n - i) {
return "Impossible";
}
for (int j = i + 1; j < n; j++) {
if (icp[i][j] != icp[j][i]) {
return "Impossible";
}
}
}
string result(n, ' ');
result[0] = 'a';
for (int i = 1; i < n; i++) {
bool assigned = false;
for (int j = 0; j < i; j++) {
if (icp[j][i] > 0) {
result[i] = result[j];
assigned = true;
break;
}
}
if (!assigned) {
result[i] = result[i - 1] + 1;
if (result[i] > 'z') {
return "Impossible";
}
}
}
for (int i = 0; i < n; i++) {
for (int j = i + 1; j < n; j++) {
int commonLength = 0;
while (i + commonLength < n && j + commonLength < n && result[i + commonLength] == result[j + commonLength]) {
commonLength++;
}
if (commonLength != icp[i][j]) {
return "Impossible";
}
}
}
return result;
}
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
struct Cell {
int x, y, cost;
};
int minimumEnergy(vector<string> river, int initial_x, int initial_y, int final_x, int final_y) {
int rows = river.size();
int cols = river[0].size();
vector<vector<bool>> visited(rows, vector<bool>(cols, false));
queue<Cell> q;
int dx[] = {-1, 1, 0, 0};
int dy[] = {0, 0, -1, 1};
q.push({initial_x, initial_y, 0});
visited[initial_x][initial_y] = true;
while (!q.empty()) {
Cell current = q.front();
q.pop();
if (current.x == final_x && current.y == final_y) {
return current.cost;
}
for (int i = 0; i < 4; i++) {
int next_x = current.x + dx[i];
int next_y = current.y + dy[i];
if (next_x >= 0 && next_x < rows && next_y >= 0 && next_y < cols &&
river[next_x][next_y] != '#' && !visited[next_x][next_y]) {
visited[next_x][next_y] = true;
int updatedCost = current.cost;
if ((dx[i] == -1 && dy[i] == 0) || (dx[i] == 0 && dy[i] == -1)) {
updatedCost += 1;
}
q.push({next_x, next_y, updatedCost});
}
}
}
return -1;
}
Tekion โ
โค1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Jatin Sisodia on LinkedIn: Referral - Microsoft India | 28 comments
Microsoft IDC is hiring SDE 1/SDE 2/SDE 3/Principal SDEs for its India Development Centers.
Ideal candidate :
1. Good grasp of data structures &โฆ | 28 comments on LinkedIn
Ideal candidate :
1. Good grasp of data structures &โฆ | 28 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Nistha Gupta on LinkedIn: #intuit #hiring #placement #interview #jobalert | 177 comments
Update: Not accepting anymore!
Want to join Intuit?
Intuit is hiring Software Engineer-1 and summer Intern ๐
If you think you're a good fit, DM me yourโฆ | 177 comments on LinkedIn
Want to join Intuit?
Intuit is hiring Software Engineer-1 and summer Intern ๐
If you think you're a good fit, DM me yourโฆ | 177 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Akanksha Buchke on LinkedIn: #intuit #referral #hiring #jobs #placement #interview | 121 comments
Intuit is hiring for Software Engineer 1 and Software Engineer Interns [Closed]
Intuit is accepting applications for 2025 and 2026 grads.
Apply link [2025โฆ | 121 comments on LinkedIn
Intuit is accepting applications for 2025 and 2026 grads.
Apply link [2025โฆ | 121 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Finova Hiring Junior Engineer
Experience upto 1 yr
https://finova.breezy.hr/p/e26f7e1fa4aa01-junior-engineer
Experience upto 1 yr
https://finova.breezy.hr/p/e26f7e1fa4aa01-junior-engineer
finova.breezy.hr
Join the UKโs largest Mortgage and Savings technology provider.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Ravi Agrawal on LinkedIn: Associate Product Manager- Job Description
Heyloo LinkedIn,
At Propsoch, we are changing how India buys and owns homes. Weโre hiring a mission driven product manager to join our team and help usโฆ
At Propsoch, we are changing how India buys and owns homes. Weโre hiring a mission driven product manager to join our team and help usโฆ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Minfy is hiring for Full stack Developer - MERN
Experience: 0 - 1 year's
Apply here: https://www.linkedin.com/jobs/view/4044807271/?alternateChannel=search
Experience: 0 - 1 year's
Apply here: https://www.linkedin.com/jobs/view/4044807271/?alternateChannel=search
Linkedin
Minfy hiring Full stack Developer - MERN in Hyderabad, Telangana, India | LinkedIn
Posted 9:45:02 AM. Job Description:We are looking for a talented Full Stack Developer proficient in the MERN (MongoDB,โฆSee this and similar jobs on LinkedIn.