Skip to content

Commit 2472702

Browse files
committed
[REFACTOR] [Hacker Rank] Interview Preparation Kit: Stacks and Queues: Balanced Brackets.
* Adjusted the interface to match what hackerrank expects.
1 parent 0fdc816 commit 2472702

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hackerrank/interview_preparation_kit/stacks_and_queues/balanced_brackets.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
const __YES__ = 'YES';
66
const __NO__ = 'NO';
77

8-
export function isBalancedCompute(s: string): boolean {
8+
function isBalancedCompute(s: string): boolean {
99
const pairs: Record<string, string> = { '{': '}', '(': ')', '[': ']' };
1010
const brackets: string[] = [];
1111

@@ -27,7 +27,7 @@ export function isBalancedCompute(s: string): boolean {
2727
return brackets.length <= 0;
2828
}
2929

30-
export function isBalanced(s: string): string {
30+
function isBalanced(s: string): string {
3131
return isBalancedCompute(s) ? __YES__ : __NO__;
3232
}
3333

0 commit comments

Comments
 (0)