Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package hackerrank

import "fmt"

const __YES__ = "Yes"
const __NO__ = "No"
const __RANSOM_NOTE_YES__ = "Yes"
const __RANSOM_NOTE_NO__ = "No"

func checkMagazineCompute(magazine []string, note []string) bool {
dictionary := make(map[string]int)
Expand All @@ -29,10 +29,10 @@ func checkMagazineCompute(magazine []string, note []string) bool {

func checkMagazineText(magazine []string, note []string) string {
if checkMagazineCompute(magazine, note) {
return __YES__
return __RANSOM_NOTE_YES__
}

return __NO__
return __RANSOM_NOTE_NO__
}

func checkMagazine(magazine []string, note []string) {
Expand Down