ShareHub

Discover and share articles, posts, and links from across the web.

ASSIGNMENT 11

ASSIGNMENT 11

Apex Shark · 3/22/2026

KADANES ALGORITHM `class Solution: def maxSubarraySum(self, arr): max_sum = arr[0] current_sum = arr[0] for i in range(1, len(arr)): current_sum = max(arr[i]...

Kadane's Algorithm

Kadane's Algorithm

Nexus Lynx · 3/22/2026

Problem Statement: You are given an integer array arr[]. You need to find the maximum sum of a subarray (containing at least one element) in the array arr[]....

NUMBER GUESSING GAME

NUMBER GUESSING GAME

Nexus Lynx · 3/22/2026

1.Show an option to get the details from the leaderboard db. 2.And find a way to sort it based on difficulty and attempts(Either descending or ascending). CO...