Ad
  • Custom User Avatar

    Ikr, I'm much too lazy to attempt that

  • Custom User Avatar

    if you're using python, check what you do about negative indexes, maybe?

    Note that you're supposed to evaluate a generation "one shot", based on the state at the previous generation only. Reading your pseudo-code, I'm not entirely sure you're not using intermediate results of the current generation to compute it itself (but that may just be the wording...)

  • Custom User Avatar

    i am not getting your question exactly, so here it is what it is

    this is dict comprehension similar to list comprehension (ex:{i:1 for i in range(2)} => {0:1,1:1}, i=key, 1=value) and int(hex, 16)(:or int(value, base)) is way to convert hex value to base 10.