We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99401e2 commit cc0ac67Copy full SHA for cc0ac67
src/hackerrank/interview_preparation_kit/sort/ctci_bubble_sort.ts
@@ -4,7 +4,7 @@
4
5
const SEPARATOR = '\n';
6
7
-export class SortableGroup {
+class SortableGroup {
8
group: number[];
9
10
count: number;
@@ -38,7 +38,7 @@ export class SortableGroup {
38
}
39
40
41
-export function countSwaps(a: number[]): void {
+function countSwaps(a: number[]): void {
42
const sortableGroup = new SortableGroup(a);
43
sortableGroup.bubble_sort();
44
@@ -53,3 +53,4 @@ export function countSwaps(a: number[]): void {
53
54
55
export default { countSwaps, SortableGroup };
56
+export { countSwaps, SortableGroup };
0 commit comments