Skip to content

Conversation

Chiefpatwal
Copy link
Contributor

@Chiefpatwal Chiefpatwal commented Oct 27, 2024

…ests

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

@codecov-commenter
Copy link

codecov-commenter commented Oct 27, 2024

Codecov Report

Attention: Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 72.38%. Comparing base (a163816) to head (ce2c76c).

Files with missing lines Patch % Lines
...ngwindow/LongestSubarrayWithSumLessOrEqualToK.java 90.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6039      +/-   ##
============================================
+ Coverage     72.37%   72.38%   +0.01%     
- Complexity     4981     4984       +3     
============================================
  Files           652      653       +1     
  Lines         17569    17579      +10     
  Branches       3385     3387       +2     
============================================
+ Hits          12716    12725       +9     
  Misses         4373     4373              
- Partials        480      481       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Chiefpatwal
Copy link
Contributor Author

Chiefpatwal commented Oct 27, 2024

This pull request introduces the LongestSubarrayWithSumLessOrEqualToK class, which implements an algorithm to find the length of the longest subarray whose sum is less than or equal to a given value k.
I have added junits and its working fine , you may check and merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants