leetcode-patterns icon indicating copy to clipboard operation
leetcode-patterns copied to clipboard

SortBy Company field should consider company filter

Open vrajeshkanna opened this issue 1 year ago • 4 comments

When sorting the data by the company field, the sorting should be based on the frequency of the selected company in the filter. For example, if "Facebook" is selected in the filter, the sorting should be based on the frequency of questions related to Facebook under the company field.

image

vrajeshkanna avatar Apr 14 '24 16:04 vrajeshkanna

On applying company based filter we get questions filtered on company basis, How do we define frequency related to particular company e.g. facebook given in above example?

LordChakshu avatar Aug 13 '24 17:08 LordChakshu

How do we define frequency related to particular company e.g. facebook given in above example?

Once questions have been filtered by a company, you can left click on the Companies column header to sort by ascending/descending in terms of total company count. In other words, questions that have been asked by 10 different companies will appear higher up than questions asked by 3 different companies. The individual company count is pulled directly from Leetcode on a weekly-basis.

seanprashad avatar Aug 13 '24 17:08 seanprashad

What is the functionality requirement that we are looking for in this issue #306 P.S=> @seanprashad sort by ascending/descending is difficult to locate unless told :)

LordChakshu avatar Aug 13 '24 18:08 LordChakshu

@LordChakshu In the above case, the frequency of this question is 155. The functionality requirement is when Facebook is selected and when we sort by descending, we should sort by most asked question to least asked question. That way those who have less time can prep most frequently asked questions.

vrajeshkanna avatar Aug 13 '24 23:08 vrajeshkanna