K’th Non-repeating Character in Python using List

Dictionary and counter in Python to find winner of election (3)

Given a string and a number k, find the k-th non-repeating character in the string. Consider a large input string with lacs of characters and a small character set. How to find the character by only doing only one traversal of input string?

Check order of character in string using Ordered

Check order of character in string using Ordered

Given an input string and a pattern, check if characters in the input string follows the same order as determined by characters present in the pattern. Assume there won’t be any duplicate characters in the pattern.

Find the size of largest subset of anagram words

Find the size of largest subset of anagram words

Given an array of n string containing lowercase letters. Find the size of largest subset of string which are anagram of each others. An anagram of a string is another string that contains same characters, only the order of characters can be different. For example, “abcd” and “dabc” are anagram of each other.

Counting the frequencies in a list

Counting the frequencies in a list

Given an unsorted list of some: elements(may or may not be integers), Find the frequency of each distinct element in the list using a dictionary.