chore: remove repetitive words in comments

Signed-off-by: dongjinlong <dongjinlong@outlook.com>
This commit is contained in:
dongjinlong
2024-03-26 22:56:14 +08:00
committed by Corentin Le Molgat
parent f3f9bc44a2
commit a1ed8e3e85
15 changed files with 15 additions and 15 deletions

View File

@@ -62,7 +62,7 @@ public class CostasArray
// Fix the values in the lower triangle in the
// difference matrix to -n+1. This removes variants
// of the difference matrix for the the same Costas array.
// of the difference matrix for the same Costas array.
for (int i = 0; i < n; i++)
{
for (int j = 0; j <= i; j++)

View File

@@ -91,7 +91,7 @@ def main(n=6):
# Fix the values in the lower triangle in the
# difference matrix to -n+1. This removes variants
# of the difference matrix for the the same Costas array.
# of the difference matrix for the same Costas array.
for i in range(n):
for j in range(i + 1):
solver.Add(differences[i, j] == -n + 1)

View File

@@ -21,7 +21,7 @@
base**n.
Compare with the the web based programs:
Compare with the web based programs:
http://www.hakank.org/comb/debruijn.cgi
http://www.hakank.org/comb/debruijn_arb.cgi

View File

@@ -48,7 +48,7 @@ public class KenKen2
else
{
// For length > 2 then res is either the sum
// the the product of the segment
// the product of the segment
// sum the numbers
int len = cc.Length / 2;

View File

@@ -27,7 +27,7 @@ public class Lectures
* Biggs: Discrete Mathematics (2nd ed), page 187.
* """
* Suppose we wish to schedule six one-hour lectures, v1, v2, v3, v4, v5, v6.
* Among the the potential audience there are people who wish to hear both
* Among the potential audience there are people who wish to hear both
*
* - v1 and v2
* - v1 and v4

View File

@@ -18,7 +18,7 @@
Biggs: Discrete Mathematics (2nd ed), page 187.
'''
Suppose we wish to schedule six one-hour lectures, v1, v2, v3, v4, v5, v6.
Among the the potential audience there are people who wish to hear both
Among the potential audience there are people who wish to hear both
- v1 and v2
- v1 and v4

View File

@@ -47,7 +47,7 @@
* Wikipedia http://en.wikipedia.org/wiki/Pandigital_number
Compare with the the following models:
Compare with the following models:
* MiniZinc: http://www.hakank.org/minizinc/pandigital_numbers.mzn
* Comet : http://www.hakank.org/comet/pandigital_numbers.co
* ECLiPSe : http://www.hakank.org/eclipse/pandigital_numbers.ecl

View File

@@ -26,7 +26,7 @@
army placements to secure the Roman Empire.
'''
Compare with the the following models:
Compare with the following models:
* MiniZinc: http://www.hakank.org/minizinc/set_covering_deployment.mzn
* Comet : http://www.hakank.org/comet/set_covering_deployment.co
* Gecode : http://www.hakank.org/gecode/set_covering_deployment.cpp

View File

@@ -160,7 +160,7 @@
"\n",
" # Fix the values in the lower triangle in the\n",
" # difference matrix to -n+1. This removes variants\n",
" # of the difference matrix for the the same Costas array.\n",
" # of the difference matrix for the same Costas array.\n",
" for i in range(n):\n",
" for j in range(i + 1):\n",
" solver.Add(differences[i, j] == -n + 1)\n",

View File

@@ -82,7 +82,7 @@
" base**n.\n",
"\n",
"\n",
" Compare with the the web based programs:\n",
" Compare with the web based programs:\n",
" http://www.hakank.org/comb/debruijn.cgi\n",
" http://www.hakank.org/comb/debruijn_arb.cgi\n",
"\n",

View File

@@ -79,7 +79,7 @@
" Biggs: Discrete Mathematics (2nd ed), page 187.\n",
" '''\n",
" Suppose we wish to schedule six one-hour lectures, v1, v2, v3, v4, v5, v6.\n",
" Among the the potential audience there are people who wish to hear both\n",
" Among the potential audience there are people who wish to hear both\n",
"\n",
" - v1 and v2\n",
" - v1 and v4\n",

View File

@@ -108,7 +108,7 @@
" * Wikipedia http://en.wikipedia.org/wiki/Pandigital_number\n",
"\n",
"\n",
" Compare with the the following models:\n",
" Compare with the following models:\n",
" * MiniZinc: http://www.hakank.org/minizinc/pandigital_numbers.mzn\n",
" * Comet : http://www.hakank.org/comet/pandigital_numbers.co\n",
" * ECLiPSe : http://www.hakank.org/eclipse/pandigital_numbers.ecl\n",

View File

@@ -87,7 +87,7 @@
" army placements to secure the Roman Empire.\n",
" '''\n",
"\n",
" Compare with the the following models:\n",
" Compare with the following models:\n",
" * MiniZinc: http://www.hakank.org/minizinc/set_covering_deployment.mzn\n",
" * Comet : http://www.hakank.org/comet/set_covering_deployment.co\n",
" * Gecode : http://www.hakank.org/gecode/set_covering_deployment.cpp\n",

View File

@@ -8,7 +8,7 @@ as this allows you to keep up-to-date with the latest Python frameworks.
Wherever you have `ortools` package installed, be sure to import it from your python file.
# Execution
For running the examples you can use the the following command:
For running the examples you can use the following command:
```shell
python3 -m pip install --upgrade --user ortools
python3 <example>.py

View File

@@ -40,7 +40,7 @@ java:
@echo JAR_BIN = $(JAR_BIN)
@echo JAVA_BIN = $(JAVA_BIN)
@echo MVN_BIN = $(MVN_BIN)
$(warning Either JAVA support was turned off, or the the makefile cannot\
$(warning Either JAVA support was turned off, or the makefile cannot\
find 'java' or 'maven' command which is needed for build. \
Please make sure it is installed and in system path. \
Or turn java support ON.)