chore(i18n,learn): processed translations (#44880)

This commit is contained in:
camperbot
2022-01-25 23:25:03 +05:30
committed by GitHub
parent 9a253bf1da
commit b115049ee2
10 changed files with 36 additions and 18 deletions

View File

@ -39,6 +39,24 @@ assert(
);
```
`isBinarySearchTree()` should return false when checked with a tree that is not a binary search tree.
```js
assert(
(function () {
var test = false;
if (typeof BinarySearchTree !== 'undefined') {
test = new BinarySearchTree();
} else {
return false;
}
test.push(1);
test.root.left = new Node(1);
return isBinarySearchTree(test) == false;
})()
);
```
# --seed--
## --after-user-code--
@ -114,7 +132,7 @@ function isBinarySearchTree(tree) {
function checkTree(node) {
if (node.left != null) {
const left = node.left;
if (left.value > node.value) {
if (left.value >= node.value) {
isBST = false;
} else {
checkTree(left);

View File

@ -10,11 +10,11 @@ dashedName: problem-429-sum-of-squares-of-unitary-divisors
ある数 $n$ の単約数 $d$ とは、$gcd(d, \frac{n}{d}) = 1$ という性質を持つような $n$ の約数です。
The unitary divisors of $4! = 24$ are 1, 3, 8 and 24.
$4! = 24$ の単約数は、1、3、8、24 です。
これらの平方数の和は $12 + 32 + 82 + 242 = 650$ です。
$n$ の単約数の平方和を $S(n)$ で表します。 Thus $S(4!) = 650$.
$n$ の単約数の平方和を $S(n)$ で表します。 したがって、$S(4!) = 650$ です。
$S(100\\,000\\,000!)$ mod $1\\,000\\,000\\,009$ を求めなさい。