Algorithm · Microsoft · Easy
Given a collection of applications with relevance values for individual keywords, produce the K applications with the highest relevance. Input An integer K. A JSON object or dictionary named apps. Each key is an application name (string), and its value is a mapping from keywords to floating-point scores. Example: Relevance definition (concrete for implementation) Compute an application's overall relevance as the largest score assigned to any of its keywords. Order…