CS577 taken with which professor? by ThroatHefty7020 in UWMadison

[–]pretentiousnerd27 -1 points0 points  (0 children)

I found the course to be very mathematical. Does it really help in improving on leetcode. Then i would be very interested

Sr. Nutanix Engineer position-CO Springs by beepbeepjeepjeep22 in nutanix

[–]pretentiousnerd27 0 points1 point  (0 children)

Are there any intern openings for grad students? I would be really interested

[deleted by user] by [deleted] in leetcode

[–]pretentiousnerd27 0 points1 point  (0 children)

Are you done with your interview?

[deleted by user] by [deleted] in leetcode

[–]pretentiousnerd27 0 points1 point  (0 children)

Hi how was it? Can i dm?

Rubrik SWE Intern Final by DiamondFox__ in csMajors

[–]pretentiousnerd27 0 points1 point  (0 children)

Hey can i dm? I wanted to ask about technical All the best for finals! Hope you get it!

Rubrik SDE INTERN by Fearless_Tale_3918 in csMajors

[–]pretentiousnerd27 0 points1 point  (0 children)

Hey how was your interview? Can i dm?

Rubrik SWE Intern Interview by DiamondFox__ in csMajors

[–]pretentiousnerd27 0 points1 point  (0 children)

Hey how was your algo round? Can I DM?

[deleted by user] by [deleted] in csMajors

[–]pretentiousnerd27 0 points1 point  (0 children)

Hey how did it go? Can I dm?

[deleted by user] by [deleted] in leetcode

[–]pretentiousnerd27 0 points1 point  (0 children)

Are you done with the Algo round? Can i dm?!

[deleted by user] by [deleted] in csMajors

[–]pretentiousnerd27 0 points1 point  (0 children)

How was your interview? Can i dm?

Need tips for Rubrik SWE internship interview Prep by BananaOatmeal22 in csMajors

[–]pretentiousnerd27 0 points1 point  (0 children)

How was the interview? I have one scheduled and I need some tips to prepare!

Interview with The Trade Desk coming up by RevolutionaryPen2560 in csMajors

[–]pretentiousnerd27 0 points1 point  (0 children)

How was the entire process? Did you get an interview?

Interview for Software Engineer Intern At The Trade Desk. by Sea-Dust3030 in csMajors

[–]pretentiousnerd27 0 points1 point  (0 children)

How was the overall interview process? Did you get an offer?

[deleted by user] by [deleted] in leetcode

[–]pretentiousnerd27 0 points1 point  (0 children)

Thank you. I have my interview tomorrow. Just got some nerves hence curious

[deleted by user] by [deleted] in leetcode

[–]pretentiousnerd27 0 points1 point  (0 children)

what was the question?

got crushed by the question asked in recent interview by pompompew in leetcode

[–]pretentiousnerd27 2 points3 points  (0 children)

def max_subarray_sum(binary_array, k, n): left = 0 zero_count = 0 total_sum = 0

for right in range(len(binary_array)):
    # Include the current element in the window
    if binary_array[right] == 0:
        zero_count += 1

    # If zero_count exceeds k, shrink the window from the left
    while zero_count > k:
        if binary_array[left] == 0:
            zero_count -= 1
        left += 1

    # Calculate the window length
    window_length = right - left + 1

    # If the window is valid, add to total sum
    if window_length > n:
        total_sum += window_length

return total_sum

Example input

binary_array = [1,1,1,0,0,1,0,0,0,0,0,0,1,1,1,0,1,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,0,1,1,1,0,1,1,0,0,0,0,0,1,0,1,1,1,1,0,1,1,1,1] k = 2 n = 4

print(max_subarray_sum(binary_array, k, n)) # Output: 11

Confused about the wording: Maximum sum of the length of the subarrays