Miscellaneous code/artifacts that don't warrant a dedicated repo
-
K Closest Points (Source): Given a set of plots on a Cartesian plane, calculate the k (where k is the number of plots to calculate) closest points to the origin.
-
Longest Consecutive Characters (Source): Given a string, find the longest subsequence consisting of a single character. Example: longest("ABAACDDDBBA") should return {'D': 3}.