seanprashad / leetcode-patterns

A pattern-based approach for learning technical interview questions
https://seanprashad.com/leetcode-patterns/
GNU General Public License v3.0
10.06k stars 1.75k forks source link

SortBy Company field should consider company filter #306

Open vrajeshkanna opened 6 months ago

vrajeshkanna commented 6 months ago

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

LordChakshu commented 2 months ago

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?

seanprashad commented 2 months ago

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.

LordChakshu commented 2 months ago

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 :)

vrajeshkanna commented 2 months ago

@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.