Problem Solved the below problem. Would love to hear your feedback, especially on performance improvements (granted, the solution should remain […]

# Tag: balanced-delimiters

## Check if a string contains matching brackets

Problem Trying to solve a case for a set of multiple types of brackets. class BracketHelper { // checks if […]

## isBalanced function for checking if string with brackets is balanced ([{}])

Problem I wrote simple function for checking if string is balanced (with brackets ([{}])). It takes a string argument and […]

## Check for balanced brackets in JavaScript

Problem Rules: You should create a function that receives a string with brackets, parentheses, or curly brackets, an example: test(‘{A}’) […]

## Reversing strings inside parentheses

Problem How can I optimize this algorithm to reverse strings inside parentheses? String reverseParentheses(String s) { String tmpCh = new […]

## Balancing Brackets Algorithm: Stack Data Structure

Problem I am currently refining my understanding of data structures and as such, decided to implement a popular application of […]

## Swift HackerRank Balanced Brackets

Problem I solved this stack problem in Swift. Looking for any feedback on my code: import Foundation /// Returns an […]

## Looping through a string finding nested brackets

Problem So I’ve been trying to check through a string, looping for, [ (start) and ] (end). In this, I […]

## Balanced braces

Problem I wanted to write a JavaScript function that checked for balanced braces. I’d be grateful for any feedback on […]

## Print all combinations of balanced parentheses

Problem Given ( and ) and length of 4, generate the following combinations – ()() and (()). Looking for code […]

- 1
- 2