•  
      tasks #45431 Count the number of occurrences of a key-value pair in a text file
    #45431
    Mohini Singh (mohini)
    2022-08-16 23:56
    2022-08-16 23:56
    Details
    Count the number of occurrences of a key-value pair in a text file
    Maintain another dictionary (say d) that will store the count of occurrence of each key-value pair of the file. Store the key-value pair of the text file as a key in the dictionary. Now iterate through the key-value pairs of the file. If the pair is present in the dictionary then increment the value of that pair by one otherwise insert the pair and set its value to one.
    5 - Medium
    State of Progress
    2022-06-03
    100
    2022-06-05
    Mohini Singh (mohini)
    Rakesh Kumar Verma (rakesh.verma)
    2022-06-04
    Closed
    Attachments
    References
    References list is empty