Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐ Exciting Internship Opportunity at T-Systems! ๐
Are you a 2024 graduate looking to kickstart your career with hands-on industry experience? ๐ T-Systems is hiring interns for various exciting roles.
โ Who can apply?
Graduates with 60% or more throughout their 10th, 12th, Graduation/Post Graduation.
Degree in BCS, BSc, MSc, MCA, BE, BTech, or MBA.
Passout year: 2024 only
๐ Locations: Pune or Bangalore
๐ Internship Duration: 3-6 months
Apply here: https://smrtr.io/nvkHg
Are you a 2024 graduate looking to kickstart your career with hands-on industry experience? ๐ T-Systems is hiring interns for various exciting roles.
โ Who can apply?
Graduates with 60% or more throughout their 10th, 12th, Graduation/Post Graduation.
Degree in BCS, BSc, MSc, MCA, BE, BTech, or MBA.
Passout year: 2024 only
๐ Locations: Pune or Bangalore
๐ Internship Duration: 3-6 months
Apply here: https://smrtr.io/nvkHg
Smartrecruiters
T-Systems ICT India Pvt. Ltd. Intern | SmartRecruiters
Internship for 2024 pass out Candidates Duration of 3- 6 months
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
https://boards.greenhouse.io/thetradedesk/jobs/4435073007?gh_src=1c01b2067us&source=LinkedIn
2025 and 2026 are eligible
2025 and 2026 are eligible
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int N = sc.nextInt();
int[] commands = new int[N];
for (int i = 0; i < N; i++) {
commands[i] = sc.nextInt();
}
int[] dx = {0, 1, 0, -1};
int[] dy = {1, 0, -1, 0};
int x = 0, y = 0;
int dir = 0;
int totalX = 0, totalY = 0;
for (int i = 0; i < N; i++) {
x += commands[i] * dx[dir];
y += commands[i] * dy[dir];
dir = (dir + 1) % 4;
}
totalX = x;
totalY = y;
int finalX = totalX * K;
int finalY = totalY * K;
System.out.println(Math.abs(finalX) + Math.abs(finalY));
sc.close();
}
}
Autonomous Car AIโ
Intuit
Forwarded from Google | IBM | Accenture | TCS | Wipro | Cognizant | Capgemini | Amazon | Exam Group | Discussion Group - SuperExams (Dushyant)
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
char[] colors = {'R', 'O', 'Y', 'G', 'B', 'I', 'V'};
Set<Character> usedColors = new HashSet<>();
for (int i = 0; i < N; i++) {
int canNumber = sc.nextInt();
char color = colors[(canNumber - 1) % 7];
usedColors.add(color);
}
System.out.println(usedColors.size());
sc.close();
}
}
Colors of the Rainbow โ
Intuit
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
https://boards.greenhouse.io/thetradedesk/jobs/4435073007?gh_src=1c01b2067us&source=LinkedIn
2025 and 2026 are eligible
2025 and 2026 are eligible
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <iostream>
#include <vector>
#include <unordered_map>
#include <algorithm>
using namespace std;
int findMinSum(const vector<int>& arr, int z, int k) {
int n = arr.size();
int minSum = k + 1;
for (int i = 0; i < n; ++i) {
for (int j = 0; j < n; ++j) {
for (int a = 0; a <= k; ++a) {
int rem = z - a * arr[i];
if (rem < 0) break;
if (rem % arr[j] == 0) {
int b = rem / arr[j];
if (a + b <= k) {
minSum = min(minSum, a + b);
}
}
}
}
}
return (minSum <= k) ? minSum : -1;
}
vector<int> solve(const vector<int>& arr, const vector<int>& query, int k) {
vector<int> result;
for (int z : query) {
int minSum = findMinSum(arr, z, k);
result.push_back(minSum);
}
return result;
}
Solving linear Equationโ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll INF = LLONG_MAX;
vector<ll> dijkstra(int n, int src, const vector<vector<pair<int, int>>>& adj) {
vector<ll> dist(n, INF);
dist[src] = 0;
priority_queue<pair<ll, int>, vector<pair<ll, int>>, greater<>> pq;
pq.push({0, src});
while (!pq.empty()) {
auto [d, u] = pq.top();
pq.pop();
if (d > dist[u]) continue;
for (auto [v, cost] : adj[u]) {
if (dist[u] + cost < dist[v]) {
dist[v] = dist[u] + cost;
pq.push({dist[v], v});
}
}
}
return dist;
}
vector<vector<ll>> shortest(int nodes, const vector<int>& deliveries, const vector<vector<pair<int, int>>>& adj) {
int k = deliveries.size();
vector<vector<ll>> dist(k, vector<ll>(nodes));
for (int i = 0; i < k; ++i) {
dist[i] = dijkstra(nodes, deliveries[i], adj);
}
return dist;
}
ll minTime(int nodes, int k, const vector<ll>& startDist, const vector<vector<ll>>& dist, const vector<int>& deliveries) {
vector<vector<ll>> dp(1 << k, vector<ll>(k, INF));
for (int i = 0; i < k; ++i) {
dp[1 << i][i] = startDist[deliveries[i]];
}
for (int mask = 0; mask < (1 << k); ++mask) {
for (int i = 0; i < k; ++i) {
if (mask & (1 << i)) {
for (int j = 0; j < k; ++j) {
if (!(mask & (1 << j))) {
dp[mask | (1 << j)][j] = min(dp[mask | (1 << j)][j], dp[mask][i] + dist[i][deliveries[j]]);
}
}
}
}
}
ll minTime = INF;
for (int i = 0; i < k; ++i) {
minTime = min(minTime, dp[(1 << k) - 1][i] + dist[i][0]);
}
return minTime;
}
long long getMinimumTime(int n, vector<int> from, vector<int> to, vector<int> weight, vector<int> del) {
int m = from.size();
vector<vector<pair<int, int>>> adj(n);
for (int i = 0; i < m; ++i) {
adj[from[i]].emplace_back(to[i], weight[i]);
adj[to[i]].emplace_back(from[i], weight[i]);
}
vector<ll> start = dijkstra(n, 0, adj);
vector<vector<ll>> dist = shortest(n, del, adj);
ll mini = minTime(n, del.size(), start, dist, del);
return (mini == INF) ? -1 : mini;
}
Optimizing Delivery โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <iostream>
#include <vector>
#include <queue>
#include <algorithm>
using namespace std;
struct Cell {
int r, c;
};
int n, m;
vector<vector<int>> dist;
vector<string> grid;
vector<pair<int, int>> directions = {{-1, 0}, {1, 0}, {0, -1}, {0, 1}};
void bfsFromObstacles() {
queue<Cell> q;
dist = vector<vector<int>>(n, vector<int>(m, 1e9));
for (int r = 0; r < n; r++) {
for (int c = 0; c < m; c++) {
if (grid[r][c] == '*') {
q.push({r, c});
dist[r][c] = 0;
}
}
}
while (!q.empty()) {
Cell cur = q.front();
q.pop();
for (auto dir : directions) {
int nr = cur.r + dir.first;
int nc = cur.c + dir.second;
if (nr >= 0 && nr < n && nc >= 0 && nc < m && dist[nr][nc] > dist[cur.r][cur.c] + 1) {
dist[nr][nc] = dist[cur.r][cur.c] + 1;
q.push({nr, nc});
}
}
}
}
bool canReachWithMinDist(int mid, Cell start, Cell end) {
if (dist[start.r][start.c] < mid) return false;
queue<Cell> q;
vector<vector<bool>> visited(n, vector<bool>(m, false));
q.push(start);
visited[start.r][start.c] = true;
while (!q.empty()) {
Cell cur = q.front();
q.pop();
if (cur.r == end.r && cur.c == end.c) return true;
for (auto dir : directions) {
int nr = cur.r + dir.first;
int nc = cur.c + dir.second;
if (nr >= 0 && nr < n && nc >= 0 && nc < m && !visited[nr][nc] && dist[nr][nc] >= mid) {
visited[nr][nc] = true;
q.push({nr, nc});
}
}
}
return false;
}
int findMaximumDistance(vector<string>& gridInput) {
grid = gridInput;
n = grid.size();
m = grid[0].size();
Cell start, end;
for (int r = 0; r < n; r++) {
for (int c = 0; c < m; c++) {
if (grid[r][c] == 'S') {
start = {r, c};
}
if (grid[r][c] == 'E') {
end = {r, c};
}
}
}
bfsFromObstacles();
int lo = 0, hi = n + m, ans = 0;
while (lo <= hi) {
int mid = (lo + hi) / 2;
if (canReachWithMinDist(mid, start, end)) {
ans = mid;
lo = mid + 1;
} else {
hi = mid - 1;
}
}
return ans;
}
Ebullient โ
Maximum Distance
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
def bfs_from_obstacles(g, n, m):
d = [[-1] * m for _ in range(n)]
q = [(i, j) for i in range(n) for j in range(m) if g[i][j] == '*']
for x, y in q: d[x][y] = 0
dirs = [(1, 0), (-1, 0), (0, 1), (0, -1)]
while q:
x, y = q.pop(0)
for dx, dy in dirs:
nx, ny = x + dx, y + dy
if 0 <= nx < n and 0 <= ny < m and d[nx][ny] == -1 and g[nx][ny] != '*':
d[nx][ny] = d[x][y] + 1
q.append((nx, ny))
return d
def bfs_find_max_dist(g, n, m, d):
s = e = None
for i in range(n):
for j in range(m):
if g[i][j] == 'S': s = (i, j)
elif g[i][j] == 'E': e = (i, j)
if s is None or e is None: return 0
dist_from_S = [[-1] * m for _ in range(n)]
dist_from_S[s[0]][s[1]] = d[s[0]][s[1]]
q = [(s[0], s[1], d[s[0]][s[1]])]
max_min_dist = 0
while q:
x, y, min_dist = q.pop(0)
if (x, y) == e:
max_min_dist = max(max_min_dist, min_dist)
continue
for dx, dy in [(1, 0), (-1, 0), (0, 1), (0, -1)]:
nx, ny = x + dx, y + dy
if 0 <= nx < n and 0 <= ny < m and g[nx][ny] != '*':
new_min_dist = min(min_dist, d[nx][ny])
if dist_from_S[nx][ny] == -1:
dist_from_S[nx][ny] = new_min_dist
q.append((nx, ny, new_min_dist))
return max_min_dist
def findMaximumDistance(grid):
n, m = len(grid), len(grid[0])
dist_to_obstacles = bfs_from_obstacles(grid, n, m)
return bfs_find_max_dist(grid, n, m, dist_to_obstacles)
Ebullient โ
Maximum Distance