Ad
  • Custom User Avatar
    st = E&Is-/a]IR.mt{VN'L'L-/\`)OYe`jdN_'#M5VNza;Rtpa]-/-/IR.uhmt{C]9-/C]9\`)E&IstpA/@R'LE&IsVNE&Isk-dN_k-M#F`jVNmt{'Lmt{VN'LJ0_@C]9VNza;RJ0_@k-dN_tp-/A/@RIR.U*DJ'L-/uhInbjza;RJ0_@W"OYeInbj'#M5uhtpJ0_@#+VN-/'LIR.#+A/@R#+W"za;Rmt{VNXBDVtpA/@ROYe#+Vi1@OYeC]9A/@ROYeVi1@`j'LInbjk-'#M5'#M5tp
    
    encryption_dict = {'a': 'Inbj', 'b': 'IR.', 'c': '-/', 'd': 'M#F', 'e': 'W"', 'f': 'k-', 'g': 'a]', 'h': 'Vi1@', 'i': 'VN', 'j': 'tp', 'k': 'dN_', 'l': 'J0_@', 'm': 'C]9', 'n': 'mt{', 'o': "'L", 'p': 'U*DJ', 'q': '\\`)', 'r': 'XBDV', 's': "'#M5", 't': 'za;R', 'u': '#+', 'v': 'E&Is', 'w': 'uh', 'x': 'OYe', 'y': 'A/@R', 'z': '`j'}
    
    'vcgbnioocqxzksitjgccbwnmcmqvjyovivfkfdzinoniolmitlfkjcybpocwatlexaswjluicobuyuetnirjyxwxmyxhzoafssj'
    should equal
    'vcgbnioocqxzksitjgccbwnmcmqvjyovivfkfdzinoniolmitlfkjcybpocwatlexaswjluicobuyuetnirjyxuhxmyxhzoafssj'
    

    The "decrypted" result depends on the order of substitution (which is unknown), so the entire kata's premise is flawed.

  • Custom User Avatar

    I don't know much about Java best practices but I believe functions should use interface types for parameters instead of implementation types.

  • Default User Avatar

    Random tests should be added.