Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FoodItemPQ ¶
type FoodItemPQ []*FoodItem
func (FoodItemPQ) Len ¶
func (f FoodItemPQ) Len() int
func (FoodItemPQ) Less ¶
func (f FoodItemPQ) Less(i, j int) bool
func (*FoodItemPQ) Pop ¶
func (f *FoodItemPQ) Pop() any
func (*FoodItemPQ) Push ¶
func (f *FoodItemPQ) Push(x any)
func (FoodItemPQ) Swap ¶
func (f FoodItemPQ) Swap(i, j int)
type FoodRatings ¶
type FoodRatings struct {
// contains filtered or unexported fields
}
func Constructor ¶
func Constructor(foods []string, cuisines []string, ratings []int) FoodRatings
func (*FoodRatings) ChangeRating ¶
func (f *FoodRatings) ChangeRating(food string, newRating int)
func (*FoodRatings) HighestRated ¶
func (f *FoodRatings) HighestRated(cuisine string) string
Click to show internal directories.
Click to hide internal directories.