Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
We're looking for an intern to work on a vision project at Mercedes Benz R&D India (MBRDI). The candidate should be available for 6 months (on site preferred) and should have some prior research experience and knowhow of latest vision trends like NeRF, SAM, CLIP, etc. Please DM a detailed paragraph of your research experience along with your CV or drop me an email at : vasudev.singh@mercedes-benz.com
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Parspec hiring for ML l
2023 and before batches eligible
https://jobs.lever.co/parspec/f2d3897d-3aee-42f1-937f-0861e93e95c7
2023 and before batches eligible
https://jobs.lever.co/parspec/f2d3897d-3aee-42f1-937f-0861e93e95c7
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
def calculate_prefix_sums(arr):
prefix_sums = [0] * len(arr)
prefix_sums[0] = arr[0]
for i in range(1, len(arr)):
prefix_sums[i] = prefix_sums[i - 1] + arr[i]
return prefix_sums
def count_balanced_partitions(prefix_sums):
total_sum = prefix_sums[-1]
count = 0
for i in range(len(prefix_sums) - 1):
if prefix_sums[i] == (total_sum - prefix_sums[i]):
count += 1
return count
def max_balanced_partitions(arr, k):
n = len(arr)
if n < 2:
return 0
prefix_sums = calculate_prefix_sums(arr)
original_count = count_balanced_partitions(prefix_sums)
max_count = original_count
for i in range(n):
new_arr = arr[:]
new_arr[i] = k
new_prefix_sums = calculate_prefix_sums(new_arr)
new_count = count_balanced_partitions(new_prefix_sums)
max_count = max(max_count, new_count)
return max_count
The dice roll challenge โ
prefix_sums = [0] * len(arr)
prefix_sums[0] = arr[0]
for i in range(1, len(arr)):
prefix_sums[i] = prefix_sums[i - 1] + arr[i]
return prefix_sums
def count_balanced_partitions(prefix_sums):
total_sum = prefix_sums[-1]
count = 0
for i in range(len(prefix_sums) - 1):
if prefix_sums[i] == (total_sum - prefix_sums[i]):
count += 1
return count
def max_balanced_partitions(arr, k):
n = len(arr)
if n < 2:
return 0
prefix_sums = calculate_prefix_sums(arr)
original_count = count_balanced_partitions(prefix_sums)
max_count = original_count
for i in range(n):
new_arr = arr[:]
new_arr[i] = k
new_prefix_sums = calculate_prefix_sums(new_arr)
new_count = count_balanced_partitions(new_prefix_sums)
max_count = max(max_count, new_count)
return max_count
The dice roll challenge โ
def maxPerformance(self, n: int, speed: List[int], efficiency: List[int], k: int) -> int:
cur_sum, h = 0, []
ans = -float('inf')
for i, j in sorted(zip(efficiency, speed),reverse=True):
while len(h) > k-1:
cur_sum -= heappop(h)
heappush(h, j)
cur_sum += j
ans = max(ans, cur_sum * i)
return ans % (10**9+7)
Tasty Dishes โ
cur_sum, h = 0, []
ans = -float('inf')
for i, j in sorted(zip(efficiency, speed),reverse=True):
while len(h) > k-1:
cur_sum -= heappop(h)
heappush(h, j)
cur_sum += j
ans = max(ans, cur_sum * i)
return ans % (10**9+7)
Tasty Dishes โ
๐1
ll cmp(const void *a, const void *b) {
return (*(ll*)a - *(ll*)b);
}
ll solve(vector<ll> a, ll k) {
ll n = a.size();
if (k < 2 || n < 2 * k - 1) return -1;
vector<ll> s = a;
qsort(s.data(), n, sizeof(ll), cmp);
for (ll t = k - 1; t < n; ++t) {
ll i = -1;
while (a[++i] != s[t]);
ll sz = 1;
ll li = i;
for (ll u = i; u >= 0; --u) {
if (u < li - 1 && a[u] <= s[t]) {
++sz;
li = u;
}
if (sz >= k) return s[t];
}
li = i;
for (ll u = i; u < n; ++u) {
if (u > li + 1 && a[u] <= s[t]) {
++sz;
li = u;
}
if (sz >= k) return s[t];
}
}
return -1;
}
//vulnerability
return (*(ll*)a - *(ll*)b);
}
ll solve(vector<ll> a, ll k) {
ll n = a.size();
if (k < 2 || n < 2 * k - 1) return -1;
vector<ll> s = a;
qsort(s.data(), n, sizeof(ll), cmp);
for (ll t = k - 1; t < n; ++t) {
ll i = -1;
while (a[++i] != s[t]);
ll sz = 1;
ll li = i;
for (ll u = i; u >= 0; --u) {
if (u < li - 1 && a[u] <= s[t]) {
++sz;
li = u;
}
if (sz >= k) return s[t];
}
li = i;
for (ll u = i; u < n; ++u) {
if (u > li + 1 && a[u] <= s[t]) {
++sz;
li = u;
}
if (sz >= k) return s[t];
}
}
return -1;
}
//vulnerability
def solution(menu, order):
t_cost = 0
for item in order:
pizza = next(p for p in menu if p.name == item.name)
price = getattr(pizza, f'price_{item.size[0]}')
total_cost += price * item.quantity
total_pizzas = sum(item.quantity for item in order)
if total_pizzas >= 3:
cheapest_price = min(getattr(next(p for p in menu if p.name == item.name), f'price_{item.size[0]}')
for item in order)
discounted_cost = t_cost - cheapest_price
return min(t_cost, discounted_cost)
return t_cost
def findMaxLength(str1, str2, str3):
m, n = len(str1), len(str2)
dp = [[0] * (n + 1) for _ in range(m + 1)]
for i in range(1, m + 1):
for j in range(1, n + 1):
if str1[i-1] == str2[j-1]:
if not has_common_substring(str1[:i], str2[:j], str3):
dp[i][j] = dp[i-1][j-1] + 1
else:
dp[i][j] = max(dp[i-1][j], dp[i][j-1])
else:
dp[i][j] = max(dp[i-1][j], dp[i][j-1])
return dp[m][n]
def has_common_substring(s1, s2, s3):
if len(s1) >= 2 and len(s2) >= 2:
last_two = s1[-2:]
if last_two in s3 and last_two == s2[-2:]:
return True
return False
DE Shaw โ
m, n = len(str1), len(str2)
dp = [[0] * (n + 1) for _ in range(m + 1)]
for i in range(1, m + 1):
for j in range(1, n + 1):
if str1[i-1] == str2[j-1]:
if not has_common_substring(str1[:i], str2[:j], str3):
dp[i][j] = dp[i-1][j-1] + 1
else:
dp[i][j] = max(dp[i-1][j], dp[i][j-1])
else:
dp[i][j] = max(dp[i-1][j], dp[i][j-1])
return dp[m][n]
def has_common_substring(s1, s2, s3):
if len(s1) >= 2 and len(s2) >= 2:
last_two = s1[-2:]
if last_two in s3 and last_two == s2[-2:]:
return True
return False
DE Shaw โ
๐1
def isPrime(n):
if n < 2:
return False
for i in range(2, int(n**0.5) + 1):
if n % i == 0:
return False
return True
def endsWithThree(n):
return n % 10 == 3
def maxGameScore(cell):
n = len(cell)
dp = [float('-inf')] * n
dp[0] = cell[0]
for i in range(1, n):
dp[i] = max(dp[i], dp[i-1] + cell[i])
for j in range(i):
jump = i - j
if isPrime(jump) and endsWithThree(jump):
dp[i] = max(dp[i], dp[j] + cell[i])
return dp[n-1]
Prime jumps โ
class GPUAllocator
{
private:
set<int> free;
unordered_map<int, int> mp;
int n;
public:
GPUAllocator()
{
n = 1;
free.insert(1);
}
void addProcess(int process_id)
{
int t = *free.begin();
free.erase(free.begin());
mp[process_id] = t;
free.insert(n++);
}
void removeProcess(int process_id)
{
int gpuId = mp[process_id];
mp.erase(process_id);
free.insert(gpuId);
}
int smallestUnoccupied()
{
return *free.begin();
}
};
{
private:
set<int> free;
unordered_map<int, int> mp;
int n;
public:
GPUAllocator()
{
n = 1;
free.insert(1);
}
void addProcess(int process_id)
{
int t = *free.begin();
free.erase(free.begin());
mp[process_id] = t;
free.insert(n++);
}
void removeProcess(int process_id)
{
int gpuId = mp[process_id];
mp.erase(process_id);
free.insert(gpuId);
}
int smallestUnoccupied()
{
return *free.begin();
}
};
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
import java.util.*;
public class Main {
private static int solve(List<Integer> subset) {
if (subset.isEmpty()) return 0;
int result = subset.get(0);
int n = subset.size();
int opIndex = 0;
for (int i = 1; i < n; i++) {
int num = subset.get(i);
switch (opIndex) {
case 0:
result ^= num;
break;
case 1:
result += num;
break;
case 2:
result |= num;
break;
}
opIndex = (opIndex + 1) % 3;
}
return result;
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int T = sc.nextInt();
for (int t = 0; t < T; t++) {
int N = sc.nextInt();
List<Integer> numbers = new ArrayList<>();
for (int i = 0; i < N; i++) {
numbers.add(sc.nextInt());
}
int maxResult = Integer.MIN_VALUE;
for (int i = 1; i < (1 << N); i++) {
List<Integer> subset = new ArrayList<>();
for (int j = 0; j < N; j++) {
if ((i & (1 << j)) > 0) {
subset.add(numbers.get(j));
}
}
int result = solve(subset);
maxResult = Math.max(maxResult, result);
}
if (maxResult % 2 == 0) {
System.out.println("Even");
} else {
System.out.println("Odd");
}
}
sc.close();
}
}
Samraj and Bits โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
DevOps Freshers Virtual Walk-In Drive - 2024 ll SourceFuse Technologies
10k stipend amount for 6 months and if you cleared the training period it will be 4.5 lpa package as your CTC
2023/2024 batches eligible
https://docs.google.com/forms/d/e/1FAIpQLSeB24ALMihKzLcRSUyBbLqvoBTTLeKopnIE58QqLobQ5ctHEQ/viewform
10k stipend amount for 6 months and if you cleared the training period it will be 4.5 lpa package as your CTC
2023/2024 batches eligible
https://docs.google.com/forms/d/e/1FAIpQLSeB24ALMihKzLcRSUyBbLqvoBTTLeKopnIE58QqLobQ5ctHEQ/viewform
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
.: Dear 2025 grads
If you want Genpact to visit your campus then forward this form to your placement cell/TPO
https://forms.office.com/r/r6efN9nGWA
.: Data science/ML internship(Remote)
At Hey Doc AI
Stipend 12k-18k (based on your performance)
Apply at
https://forms.gle/yWxAPF4TupxSyYJ28
: Baker Huges for summer internship 2025/2026 grads
https://careers.bakerhughes.com/global/en/job/BAHUGLOBALR124156/Summer-Internships-2025-India
If you want Genpact to visit your campus then forward this form to your placement cell/TPO
https://forms.office.com/r/r6efN9nGWA
.: Data science/ML internship(Remote)
At Hey Doc AI
Stipend 12k-18k (based on your performance)
Apply at
https://forms.gle/yWxAPF4TupxSyYJ28
: Baker Huges for summer internship 2025/2026 grads
https://careers.bakerhughes.com/global/en/job/BAHUGLOBALR124156/Summer-Internships-2025-India
Office
Please fill out this form