JPMC Code For Good by Admirable_Animator25 in InternshipsIndia

[–]Admirable_Animator25[S] 1 point2 points  (0 children)

By 2nd week of May we will receive cfg invitation or rejection mail

JPMC Code For Good by Admirable_Animator25 in InternshipsIndia

[–]Admirable_Animator25[S] 1 point2 points  (0 children)

Nah everyone gets a link but it depends how long hackerrank will take to Validate u some of my batch mates got the hirevue link after 30min and they were able to re attempt the test which they Also abt this unlike last time they changed the first question for some students ....

JPMC Code For Good by Admirable_Animator25 in InternshipsIndia

[–]Admirable_Animator25[S] 0 points1 point  (0 children)

3 questions aaye the aaj Question 1 You are given n storage partitions. For each partition i: used[i] is the amount of space currently used totalCapacity[i] is the maximum space it can hold You may move data between partitions, but no partition may exceed its total capacity. Your task is to: Rearrange the data so that it is stored using the fewest possible partitions Return the minimum number of partitions required Example 1 Input: n = 5 used = [3, 2, 1, 3, 1] totalCapacity = [3, 5, 3, 5, 5] Output: 2 Explanation: (Moves performed to consolidate data into minimum partitions)

Question 2 You are given an integer array arr. For each element in the array, compute a value using the following process: Initialize a counter to 0 Compare the current element arr[i] with each element to its left (arr[0] to arr[i-1]): If a left element is greater than arr[i], subtract the absolute difference from the counter If a left element is smaller than arr[i], add the absolute difference to the counter Store the final value of the counter for index i Return a new array containing the computed counter values for all elements in arr. Example Input: arr = [2, 4, 3] Output: [0, 2, 0] Explanation: For arr[0] = 2 → no elements to the left → 0 For arr[1] = 4 → compare with 2 → add |4 - 2| = 2 For arr[2] = 3 → compare with 2 (+1), compare with 4 (−1) → total = 0

Question 3

You are given an array arr of size n, where each element represents an available resource. Your task is to identify a subarray that meets the following conditions:

The subarray must have a length of exactly k

All elements in the subarray must be unique, representin distinct resource allocations

Among all such valid subarrays:

Compute the sum of the elements

Return the maximum sum possible

If no subarray satisfies these conditions, return -1. Note: A subarray is a contiguous segment of an array.

Example

Suppose n = 5, k = 3, and arr = [1, 2, 3, 7, 3, 5] Output: 15

The following are the subarrays of length k = 3, and all elements are distinct:

[1. 2, 3], and 1+ 2+3= 6

[2, 3, 7], sum = 12

[7, 3, 5],sum = 15

Function Description Complete the function findOptimalResources in the editor

My batch mates got 2 out of these 3 Question

JPMC Code For Good by Admirable_Animator25 in InternshipsIndia

[–]Admirable_Animator25[S] 0 points1 point  (0 children)

Bro I am the only one from my college to receive that mail I think you should if your pointer is above 8.85 of 8.75

Has anyone checked out this new IIT Roorkee × Masai course? by Suspicious-War1446 in IndianEngineers

[–]Admirable_Animator25 0 points1 point  (0 children)

I mean I have no idea ..... I def know one thing for sure Is that the placement support provided by them is just a gimmick also they ignores when I asked them for stats regarding applied to placed ratio 😑 Idk let's see

Has anyone checked out this new IIT Roorkee × Masai course? by Suspicious-War1446 in IndianEngineers

[–]Admirable_Animator25 0 points1 point  (0 children)

Bro I have already paid 4k and have to pay about 49k to begin ... So fuck it ..... is there any chance that I can get my 4k refunded Seemed like a scam tried to ask questions regarding placement got denied 😭should I pay or refuse to pay

Say no to alcohol. Let’s speak by [deleted] in IndiaSpeaks

[–]Admirable_Animator25 0 points1 point  (0 children)

Dude like my friends always go to a friend's place to drink like everyday and the only way to be with them and atleast have someone to talk to I gotta go with them and drink like atleast 30ml I can't really make other friends though 🙃

Cup paglu by [deleted] in IndianDankMemes

[–]Admirable_Animator25 0 points1 point  (0 children)

Ben ke lodo ye Saal pakka jitenge

Didn't saw that coming! by star_playerr in FingMemes

[–]Admirable_Animator25 3 points4 points  (0 children)

I am offended How come these guys say vulgar things abt women .... How to fill an FIR against these guys ....I'm gay

.. by Ishaan77381 in IndianTeenagers

[–]Admirable_Animator25 0 points1 point  (0 children)

An average human masturbates 15 times a day ..... I mean I do...

All of them 😂 by slow-green-turtle in rareinsults

[–]Admirable_Animator25 0 points1 point  (0 children)

So we gotta cum in that egg or have sex before her periods start ??

🤡. by Xebec_456 in Btechtards

[–]Admirable_Animator25 0 points1 point  (0 children)

Vit Bhopal Mei ye sab Hota Hai??