PANKAJ PATWAL

Results 13 comments of PANKAJ PATWAL

I’ve made some updates to the RodCutting algorithm to handle an edge case where the length of the rod is negative. Previously, the code didn’t account for this situation, which...

@siriak can i work on this feature?

> I cannot solve this PR because during a CI/CD pipeline run with Infer, a potential Null Dereference was detected in the BinaryTreeTest class. The analysis flagged the following line...

@Shreya-1305 is the issue you mentioned above is resolved?

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...

This pull request adds the SubarraysWithKDifferentIntegers algorithm to the sliding window section. The algorithm efficiently calculates the number of subarrays with exactly k different integers using a sliding window approach.Test...

This pull request fixes the bug in the KnapsackMemoization class by removing unused imports and optimizing the memoization logic.

> Could you add JUnit tests that cover the code you have changed? sure

I have added test 4 and test 5 for the same.