Python Dictionary Exercise
Basic Dictionary Programs
- Sort by Key or Value
- Handling missing keys
- Keys having multiple inputs
- Find sum of all items
- Find size of a Dictionary
- Sorting â Using itemgetter
- Sorting â Using lambda function
- Merging two Dictionaries
- Create grade calculator
- Insertion at beginning in OrderedDict
- Check order of character using OrderedDict( )
- Common elements in sorted arrays by dictionary intersection
- Dictionary and counter to find winner of election
- Key with maximum unique values
- Find all duplicate characters in string
- Group Similar items to Dictionary Values List
- Kâth Non-repeating Character
- Replace String by Kth value
- Remove a key from dictionary
- Replace words from Dictionary
- Remove Key Words
- Remove duplicates words from a given sentence
- Remove duplicate values across Values
- Find mirror characters in a string
- Counting frequencies using dictionary
- Values Mean
- Counter and dictionary intersection
- Dictionary, set and counter to check if frequencies can become same
- Scraping And Finding Ordered Words
- Possible Words using given characters
- Maximum record value key
- Extract values of Particular Key in Nested Values
Basic Practice Problems
Conversion of dictionary
- Convert Key-Value list Dictionary to List of Lists
- Convert List to List of dictionaries
- Convert Lists of List to Dictionary
- Convert List of Dictionaries to List of Lists
- Convert key-values list to flat dictionary
- Convert a list of Tuples into Dictionary
- Convert Nested dictionary to Mapped Tuple
- Convert string to dictionary
- Convert dictionary to K sized dictionaries
- Convert Matrix to dictionary
Advance Dictionary Programs
- Create Nested Dictionary using List
- Swapping Hierarchy in Nested Dictionaries
- Inversion in nested dictionary
- Reverse Dictionary Keys Order
- Extract Keyâs Value, if Key Present in List and Dictionary
- Remove keys with Values Greater than K ( Including mixed values )
- Remove keys with substring values
- Dictionary with maximum count of pairs
- Append Dictionary Keys and Values
- Extract Unique values
- Keys associated with Values
- Filter dictionary values in heterogeneous
- Print anagrams together
- Check if binary representations of two numbers are anagram
- Counter to find size of largest subset of anagram word
- Count of groups having largest size while grouping according to sum of its digits
- Sort Dictionary key and values List
- Sort Dictionary by Values Summation
- Sort dictionaries list by Keyâs Value list index
- Sort Nested keys by Value
- Scoring Matrix
- Factors Frequency
- Count distinct substrings of a string
- Build an undirected graph and finding shortest path
- LRU Cache using OrderedDict
Advance Practice Problems
- First Repeating Element
- Print Anagrams Together
- Array Pair Sum Divisibility
- Check Equal Arrays
- Check Arithmetic Progression
- LFU Cache
- LRU Cache
- Phone directory