[LeetCode] Maximum Tastiness of Candy Basket

1 · · Dec. 25, 2022, 3:12 a.m.
2517. Maximum Tastiness of Candy Basket You are given an array of positive integers price where price[i] denotes the price of the ith candy and a positive integer k. The store sells baskets of k distinct candies. The tastiness of a candy basket is the smallest absolute difference of the prices of any two candies in the basket. Return the maximum tastiness of a candy basket. ...