diff --git a/solution/1400-1499/1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit/README.md b/solution/1400-1499/1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit/README.md index 18a09a5ca7acf..8233faf7d68d6 100644 --- a/solution/1400-1499/1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit/README.md +++ b/solution/1400-1499/1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit/README.md @@ -165,7 +165,7 @@ func longestSubarray(nums []int, limit int) (ans int) { ### **TypeScript** -````ts +```ts function longestSubarray(nums: number[], limit: number): number { const ts = new TreapMultiSet(); let ans = 0; @@ -281,37 +281,6 @@ class TreapMultiSet implements ITreapMultiSet { private readonly leftBound: T; private readonly rightBound: T; - /** - * - * @param compareFn A compare function which returns boolean or number - * @param leftBound defalut value is `-Infinity` - * @param rightBound defalut value is `Infinity` - * @description - * create a `MultiSet`, compare elements using `compareFn`, which is increasing order by default. - * @example - * ```ts - * interface Person { - name: string - age: number - } - - const leftBound = { - name: 'Alice', - age: -Infinity, - } - - const rightBound = { - name: 'Bob', - age: Infinity, - } - - const sortedList = new TreapMultiSet( - (a: Person, b: Person) => a.age - b.age, - leftBound, - rightBound - ) - * ``` - */ constructor(compareFn?: CompareFunction); constructor(compareFn: CompareFunction, leftBound: T, rightBound: T); constructor( @@ -828,7 +797,7 @@ class TreapMultiSet implements ITreapMultiSet { yield* this.reverseInOrder(root.left); } } -```` +``` ### **...** diff --git a/solution/1400-1499/1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit/README_EN.md b/solution/1400-1499/1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit/README_EN.md index 02a25f7d2c509..cccd86cf2450f 100644 --- a/solution/1400-1499/1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit/README_EN.md +++ b/solution/1400-1499/1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit/README_EN.md @@ -150,7 +150,7 @@ func longestSubarray(nums []int, limit int) (ans int) { ### **TypeScript** -````ts +```ts function longestSubarray(nums: number[], limit: number): number { const ts = new TreapMultiSet(); let ans = 0; @@ -266,37 +266,6 @@ class TreapMultiSet implements ITreapMultiSet { private readonly leftBound: T; private readonly rightBound: T; - /** - * - * @param compareFn A compare function which returns boolean or number - * @param leftBound defalut value is `-Infinity` - * @param rightBound defalut value is `Infinity` - * @description - * create a `MultiSet`, compare elements using `compareFn`, which is increasing order by default. - * @example - * ```ts - * interface Person { - name: string - age: number - } - - const leftBound = { - name: 'Alice', - age: -Infinity, - } - - const rightBound = { - name: 'Bob', - age: Infinity, - } - - const sortedList = new TreapMultiSet( - (a: Person, b: Person) => a.age - b.age, - leftBound, - rightBound - ) - * ``` - */ constructor(compareFn?: CompareFunction); constructor(compareFn: CompareFunction, leftBound: T, rightBound: T); constructor( @@ -813,7 +782,7 @@ class TreapMultiSet implements ITreapMultiSet { yield* this.reverseInOrder(root.left); } } -```` +``` ### **...** diff --git a/solution/1400-1499/1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit/Solution.ts b/solution/1400-1499/1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit/Solution.ts index d800e6e9cbeea..e334426da3ffb 100644 --- a/solution/1400-1499/1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit/Solution.ts +++ b/solution/1400-1499/1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit/Solution.ts @@ -113,37 +113,6 @@ class TreapMultiSet implements ITreapMultiSet { private readonly leftBound: T; private readonly rightBound: T; - /** - * - * @param compareFn A compare function which returns boolean or number - * @param leftBound defalut value is `-Infinity` - * @param rightBound defalut value is `Infinity` - * @description - * create a `MultiSet`, compare elements using `compareFn`, which is increasing order by default. - * @example - * ```ts - * interface Person { - name: string - age: number - } - - const leftBound = { - name: 'Alice', - age: -Infinity, - } - - const rightBound = { - name: 'Bob', - age: Infinity, - } - - const sortedList = new TreapMultiSet( - (a: Person, b: Person) => a.age - b.age, - leftBound, - rightBound - ) - * ``` - */ constructor(compareFn?: CompareFunction); constructor(compareFn: CompareFunction, leftBound: T, rightBound: T); constructor( diff --git a/solution/2600-2699/2612.Minimum Reverse Operations/README.md b/solution/2600-2699/2612.Minimum Reverse Operations/README.md index 90ccdf565879a..cfb538715242a 100644 --- a/solution/2600-2699/2612.Minimum Reverse Operations/README.md +++ b/solution/2600-2699/2612.Minimum Reverse Operations/README.md @@ -916,7 +916,7 @@ class TreeMultiSet { } ``` -````ts +```ts function minReverseOperations(n: number, p: number, banned: number[], k: number): number[] { const ans = new Array(n).fill(-1); const ts = new Array(2).fill(0).map(() => new TreapMultiSet()); @@ -1049,37 +1049,6 @@ class TreapMultiSet implements ITreapMultiSet { private readonly leftBound: T; private readonly rightBound: T; - /** - * - * @param compareFn A compare function which returns boolean or number - * @param leftBound defalut value is `-Infinity` - * @param rightBound defalut value is `Infinity` - * @description - * create a `MultiSet`, compare elements using `compareFn`, which is increasing order by default. - * @example - * ```ts - * interface Person { - name: string - age: number - } - - const leftBound = { - name: 'Alice', - age: -Infinity, - } - - const rightBound = { - name: 'Bob', - age: Infinity, - } - - const sortedList = new TreapMultiSet( - (a: Person, b: Person) => a.age - b.age, - leftBound, - rightBound - ) - * ``` - */ constructor(compareFn?: CompareFunction); constructor(compareFn: CompareFunction, leftBound: T, rightBound: T); constructor( @@ -1596,7 +1565,7 @@ class TreapMultiSet implements ITreapMultiSet { yield* this.reverseInOrder(root.left); } } -```` +``` ### **...** diff --git a/solution/2600-2699/2612.Minimum Reverse Operations/README_EN.md b/solution/2600-2699/2612.Minimum Reverse Operations/README_EN.md index 351acd7f18dc2..22b600b3b3f2c 100644 --- a/solution/2600-2699/2612.Minimum Reverse Operations/README_EN.md +++ b/solution/2600-2699/2612.Minimum Reverse Operations/README_EN.md @@ -902,7 +902,7 @@ class TreeMultiSet { } ``` -````ts +```ts function minReverseOperations(n: number, p: number, banned: number[], k: number): number[] { const ans = new Array(n).fill(-1); const ts = new Array(2).fill(0).map(() => new TreapMultiSet()); @@ -1035,37 +1035,6 @@ class TreapMultiSet implements ITreapMultiSet { private readonly leftBound: T; private readonly rightBound: T; - /** - * - * @param compareFn A compare function which returns boolean or number - * @param leftBound defalut value is `-Infinity` - * @param rightBound defalut value is `Infinity` - * @description - * create a `MultiSet`, compare elements using `compareFn`, which is increasing order by default. - * @example - * ```ts - * interface Person { - name: string - age: number - } - - const leftBound = { - name: 'Alice', - age: -Infinity, - } - - const rightBound = { - name: 'Bob', - age: Infinity, - } - - const sortedList = new TreapMultiSet( - (a: Person, b: Person) => a.age - b.age, - leftBound, - rightBound - ) - * ``` - */ constructor(compareFn?: CompareFunction); constructor(compareFn: CompareFunction, leftBound: T, rightBound: T); constructor( @@ -1582,7 +1551,7 @@ class TreapMultiSet implements ITreapMultiSet { yield* this.reverseInOrder(root.left); } } -```` +``` ### **...**