Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
5493aa5
Add Sum of Squares algorithm implementation
BEASTSHRIRAM Oct 2, 2025
3e9f039
Format code and add Wikipedia URL for Lagrange's theorem
BEASTSHRIRAM Oct 2, 2025
e71008f
Fixed clang-format issues
BEASTSHRIRAM Oct 2, 2025
db58f80
Added Mo's Algorithm and DiceThrower recursive algorithms
BEASTSHRIRAM Oct 2, 2025
235e87a
Merge branch 'master' into added-mos-algorithm-dice-thrower
BEASTSHRIRAM Oct 2, 2025
4c421fa
Fixed checkstyle violation
BEASTSHRIRAM Oct 2, 2025
587bd7e
Merge branch 'added-mos-algorithm-dice-thrower' of https://github.com…
BEASTSHRIRAM Oct 2, 2025
857b074
Fixed SpotBugs issue
BEASTSHRIRAM Oct 2, 2025
f8f16e7
Added in PMD exclusions
BEASTSHRIRAM Oct 2, 2025
5ba8a8d
Merge branch 'master' into added-mos-algorithm-dice-thrower
BEASTSHRIRAM Oct 3, 2025
a3cf21b
Merge branch 'master' into added-mos-algorithm-dice-thrower
BEASTSHRIRAM Oct 4, 2025
fc65769
Merge branch 'master' into added-mos-algorithm-dice-thrower
BEASTSHRIRAM Oct 4, 2025
68775a1
Improved test coverage for better Codecov scores.
BEASTSHRIRAM Oct 5, 2025
04e711a
Merge branch 'added-mos-algorithm-dice-thrower' of https://github.com…
BEASTSHRIRAM Oct 5, 2025
df609d6
Fixed clang-format issues in test files
BEASTSHRIRAM Oct 5, 2025
c7a0406
Add Mo's Algorithm and DiceThrower algorithms with comprehensive tests
BEASTSHRIRAM Oct 5, 2025
b13cd3a
Merge branch 'master' into added-mos-algorithm-dice-thrower
BEASTSHRIRAM Oct 6, 2025
d9ad6a6
Merge branch 'master' into added-mos-algorithm-dice-thrower
DenizAltunkapan Oct 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add Mo's Algorithm and DiceThrower algorithms with comprehensive tests
* Fixed PartitionProblem.java documentation comment placement
  • Loading branch information
BEASTSHRIRAM committed Oct 5, 2025
commit c7a040605463866c77e323ad950425001db49794
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.14.1</version>
<configuration>
<source>21</source>
<target>21</target>
<release>21</release>
<compilerArgs>
<arg>-Xlint:all</arg>
<arg>-Xlint:-auxiliaryclass</arg>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
package com.thealgorithms.dynamicprogramming;

import java.util.Arrays;

/**
* @author Md Asif Joardar
*
Expand All @@ -13,11 +17,6 @@
*
* The time complexity of the solution is O(n × sum) and requires O(n × sum) space
*/

package com.thealgorithms.dynamicprogramming;

import java.util.Arrays;

public final class PartitionProblem {
private PartitionProblem() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ void testMainMethod() {
String output = outputStream.toString();

// Verify expected output contains demonstration
assertTrue(output.contains("Range Sum Queries Results:"));
assertTrue(output.contains("Range Frequency Queries Results:"));
assertTrue(output.contains("Count of 2 in ranges:"));
assertTrue(output.contains("Range Sum Queries:"));
assertTrue(output.contains("Range Frequency Queries (count of value 3):"));
assertTrue(output.contains("Array: [1, 3, 5, 2, 7, 6, 3, 1, 4, 8]"));
} finally {
System.setOut(originalOut);
}
Expand Down