long maxSum = Long.MIN_VALUE;for (int i = 0; i < nums.length; i++) {
long sum = 0; for (int j = i; j < nums.length; j++) {
sum += nums[j]; if (Math.abs(nums[i] - nums[j]) == k) {
maxSum = Math.max(maxSum, sum); }
}}
return (maxSum == Long.MIN_VALUE) ? 0 : maxSum;
// correct but you will get TLE here
long sum = 0; for (int j = i; j < nums.length; j++) {
sum += nums[j]; if (Math.abs(nums[i] - nums[j]) == k) {
maxSum = Math.max(maxSum, sum); }
}}
return (maxSum == Long.MIN_VALUE) ? 0 : maxSum;
// correct but you will get TLE here
public static long maximumSubarraySum(int[] nums, int k) { long maxSum = Long.MIN_VALUE;
for (int i = 0; i < nums.length; i++) { long sum = 0;
for (int j = i; j < nums.length; j++) { sum += nums[j];
if (Math.abs(nums[i] - nums[j]) == k) { maxSum = Math.max(maxSum, sum);
} }
} return (maxSum == Long.MIN_VALUE) ? 0 : maxSum;
}Do you guys want me to schedule one easy level coding test on leetcode tom?
Anonymous Poll
100%
YES
0%
NO
Java Hyd Team
https://docs.google.com/document/d/1nyA7afccGnX0m-jJ0YudsinKOoysh70haLCA1sphYVY/edit?usp=sharing
Will teach this content So be ready with the notes and keep doing code together
Java Hyd Team
π Dive into Code Mastery: Spring & Spring Boot Extravaganza! π Dear Future Code Maestros! π§βπ» Are you ready to embark on a coding odyssey through the enchanting realms of Spring and Spring Boot? Join our immersive 2-week program designed to elevate yourβ¦
I hope you guys got mail for the timings for the springboot classes if not yet do fillup the form and will send
Java Hyd Team
Do you guys want me to schedule one easy level coding test on leetcode tom?
Will take test tomorrow only easy level questions and 3 questions 60 minutes time
Get Ready for the π¦¦Go & π¦Rust programming languages Developer BootCamp 2024!
ποΈ Date: February 10, 2024 (Saturday)
β° Time: 9:30 AM - 1:00 PM
π₯ Mode: In-Person Learning
π’ Venue: Microsoft Building 3, Gachibowli.
π Register Today: swecha.org/developer-bootcamps
π Whatβs Happening?
Embark on a Go and Rust programming languages adventure! Whether you're a coding newbie or a seasoned developer, our BootCamp is here to turbocharge your Go/Rust skills.
π©βπ» Before You Join:
Install Rust on your laptop π rustup.rs
Install Go on your laptop π https://go.dev/doc/install
π€ It's Free! No fees, all fun.
π Get Certified: Complete the BootCamp, grab your digital badge!
βοΈ Dive into Hands-on Coding: Bring your laptop, let's Go/Rust together.
π°οΈ Be Punctual: Doors open at 9:00 AM, don't miss the coding train.
π Location:
Microsoft Office, Building 3, Gachibowli, Hyderabad.
πΊοΈ Maps:
OpenStreetMaps: https://www.openstreetmap.org/way/543748702#map=19/17.42955/78.34086
Google Maps: https://maps.app.goo.gl/gLU2wFBBD8YQKHQX7
ποΈ Date: February 10, 2024 (Saturday)
β° Time: 9:30 AM - 1:00 PM
π₯ Mode: In-Person Learning
π’ Venue: Microsoft Building 3, Gachibowli.
π Register Today: swecha.org/developer-bootcamps
π Whatβs Happening?
Embark on a Go and Rust programming languages adventure! Whether you're a coding newbie or a seasoned developer, our BootCamp is here to turbocharge your Go/Rust skills.
π©βπ» Before You Join:
Install Rust on your laptop π rustup.rs
Install Go on your laptop π https://go.dev/doc/install
π€ It's Free! No fees, all fun.
π Get Certified: Complete the BootCamp, grab your digital badge!
βοΈ Dive into Hands-on Coding: Bring your laptop, let's Go/Rust together.
π°οΈ Be Punctual: Doors open at 9:00 AM, don't miss the coding train.
π Location:
Microsoft Office, Building 3, Gachibowli, Hyderabad.
πΊοΈ Maps:
OpenStreetMaps: https://www.openstreetmap.org/way/543748702#map=19/17.42955/78.34086
Google Maps: https://maps.app.goo.gl/gLU2wFBBD8YQKHQX7
go.dev
Download and install - The Go Programming Language
Just now I got free sorry couldn't took session today because of some medical emergency
Guy's sorry just wait couple more day's as Aman isn't available because of some medical emergency till tomorrow