hackerrank.com

hackerrank.com Practice>Python>Collections>DefaultDict Tutorial

건이두 2019. 2. 10. 14:57
728x90

DefaultDict Tutorial

Problem link : https://www.hackerrank.com/challenges/defaultdict-tutorial/problem

Difficulty : Easy

Tip

  1. Problem suggest to use defaultdict(), however, it seems that just using list is better way
  2. One loop for list m, as per each m, to find index of m from list n
    1. this way is better to know index from list n

Solution


728x90