Skip to content

Commit

Permalink
style: Remove unnecessary comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
zrwusa committed Oct 21, 2024
1 parent 5a492c1 commit 18fe006
Show file tree
Hide file tree
Showing 20 changed files with 10 additions and 1,505 deletions.
40 changes: 0 additions & 40 deletions src/data-structures/base/iterable-element-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ export abstract class IterableElementBase<E, R, C> {
return this._toElementFn;
}

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
*/
/**
* Time Complexity: O(n)
* Space Complexity: O(1)
Expand All @@ -46,10 +42,6 @@ export abstract class IterableElementBase<E, R, C> {
yield* this._getIterator(...args);
}

/**
* Time Complexity: O(n)
* Space Complexity: O(n)
*/
/**
* Time Complexity: O(n)
* Space Complexity: O(n)
Expand All @@ -62,10 +54,6 @@ export abstract class IterableElementBase<E, R, C> {
}
}

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
*/
/**
* Time Complexity: O(n)
* Space Complexity: O(1)
Expand All @@ -90,15 +78,6 @@ export abstract class IterableElementBase<E, R, C> {
return true;
}

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
*/

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
*/
/**
* Time Complexity: O(n)
* Space Complexity: O(1)
Expand All @@ -123,11 +102,6 @@ export abstract class IterableElementBase<E, R, C> {
return false;
}

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
*/

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
Expand All @@ -148,11 +122,6 @@ export abstract class IterableElementBase<E, R, C> {
}
}

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
*/

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
Expand Down Expand Up @@ -195,10 +164,6 @@ export abstract class IterableElementBase<E, R, C> {
return false;
}

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
*/
/**
* Time Complexity: O(n)
* Space Complexity: O(1)
Expand All @@ -221,11 +186,6 @@ export abstract class IterableElementBase<E, R, C> {
return accumulator;
}

/**
* Time Complexity: O(n)
* Space Complexity: O(n)
*/

/**
* Time Complexity: O(n)
* Space Complexity: O(n)
Expand Down
59 changes: 0 additions & 59 deletions src/data-structures/base/iterable-entry-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ export abstract class IterableEntryBase<K = any, V = any> {
// }
// }

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
*/

abstract get size(): number;

// protected _toEntryFn?: (rawElement: R) => BTNEntry<K, V>;
Expand All @@ -39,10 +34,6 @@ export abstract class IterableEntryBase<K = any, V = any> {
yield* this._getIterator(...args);
}

/**
* Time Complexity: O(n)
* Space Complexity: O(n)
*/
/**
* Time Complexity: O(n)
* Space Complexity: O(n)
Expand All @@ -56,10 +47,6 @@ export abstract class IterableEntryBase<K = any, V = any> {
}
}

/**
* Time Complexity: O(n)
* Space Complexity: O(n)
*/
/**
* Time Complexity: O(n)
* Space Complexity: O(n)
Expand All @@ -72,10 +59,6 @@ export abstract class IterableEntryBase<K = any, V = any> {
}
}

/**
* Time Complexity: O(n)
* Space Complexity: O(n)
*/
/**
* Time Complexity: O(n)
* Space Complexity: O(n)
Expand All @@ -88,10 +71,6 @@ export abstract class IterableEntryBase<K = any, V = any> {
}
}

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
*/
/**
* Time Complexity: O(n)
* Space Complexity: O(1)
Expand All @@ -116,10 +95,6 @@ export abstract class IterableEntryBase<K = any, V = any> {
return true;
}

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
*/
/**
* Time Complexity: O(n)
* Space Complexity: O(1)
Expand All @@ -145,15 +120,6 @@ export abstract class IterableEntryBase<K = any, V = any> {
return false;
}

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
*/

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
*/
/**
* Time Complexity: O(n)
* Space Complexity: O(1)
Expand All @@ -175,11 +141,6 @@ export abstract class IterableEntryBase<K = any, V = any> {
}
}

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
*/

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
Expand All @@ -206,11 +167,6 @@ export abstract class IterableEntryBase<K = any, V = any> {
return;
}

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
*/

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
Expand All @@ -229,11 +185,6 @@ export abstract class IterableEntryBase<K = any, V = any> {
return false;
}

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
*/

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
Expand All @@ -250,11 +201,6 @@ export abstract class IterableEntryBase<K = any, V = any> {
return false;
}

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
*/

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
Expand Down Expand Up @@ -299,11 +245,6 @@ export abstract class IterableEntryBase<K = any, V = any> {
return accumulator;
}

/**
* Time Complexity: O(n)
* Space Complexity: O(n)
*/

/**
* Time Complexity: O(n)
* Space Complexity: O(n)
Expand Down
40 changes: 0 additions & 40 deletions src/data-structures/binary-tree/avl-tree-multi-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,6 @@ export class AVLTreeMultiMap<
return this._count;
}

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
*/

/**
* Time Complexity: O(n)
* Space Complexity: O(1)
Expand Down Expand Up @@ -203,11 +198,6 @@ export class AVLTreeMultiMap<
return;
}

/**
* Time Complexity: O(log n)
* Space Complexity: O(1)
*/

/**
* Time Complexity: O(log n)
* Space Complexity: O(1)
Expand Down Expand Up @@ -237,11 +227,6 @@ export class AVLTreeMultiMap<
return true;
}

/**
* Time Complexity: O(log n)
* Space Complexity: O(1)
*/

/**
* Time Complexity: O(log n)
* Space Complexity: O(1)
Expand Down Expand Up @@ -322,11 +307,6 @@ export class AVLTreeMultiMap<
return deletedResult;
}

/**
* Time Complexity: O(1)
* Space Complexity: O(1)
*/

/**
* Time Complexity: O(1)
* Space Complexity: O(1)
Expand All @@ -339,11 +319,6 @@ export class AVLTreeMultiMap<
this._count = 0;
}

/**
* Time Complexity: O(n log n)
* Space Complexity: O(log n)
*/

/**
* Time Complexity: O(n log n)
* Space Complexity: O(log n)
Expand Down Expand Up @@ -394,11 +369,6 @@ export class AVLTreeMultiMap<
}
}

/**
* Time complexity: O(n)
* Space complexity: O(n)
*/

/**
* Time complexity: O(n)
* Space complexity: O(n)
Expand All @@ -412,11 +382,6 @@ export class AVLTreeMultiMap<
return cloned;
}

/**
* Time Complexity: O(1)
* Space Complexity: O(1)
*/

/**
* Time Complexity: O(1)
* Space Complexity: O(1)
Expand Down Expand Up @@ -458,11 +423,6 @@ export class AVLTreeMultiMap<
return undefined;
}

/**
* Time Complexity: O(1)
* Space Complexity: O(1)
*/

/**
* Time Complexity: O(1)
* Space Complexity: O(1)
Expand Down
Loading

0 comments on commit 18fe006

Please sign in to comment.