Skip to content

Commit 8e01f3d

Browse files
committed
minor edits
1 parent 702eacc commit 8e01f3d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

other/NestedBrackets.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ import (
1919
)
2020

2121
func isBalanced(input string) string {
22-
/* if len(input)%2 == 0{
22+
if len(input)%2 == 0{
2323
return input + "is not balanced."
24-
}*/
2524
if len(input) > 0 {
2625
var stack []byte
2726
for i := 0; i < len(input); i++ {

searches/binary_search.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ func binarySearch(array []int, target int, lowIndex int, highIndex int) int {
77
if highIndex < lowIndex {
88
return -1
99
}
10-
mid := int((lowIndex + (highIndex-lowindex)/2))
10+
mid := int((lowIndex + (highIndex-lowIndex)/2))
1111
if array[mid] > target {
1212
return binarySearch(array, target, lowIndex, mid)
1313
} else if array[mid] < target {

0 commit comments

Comments
 (0)