Recent content by dkMft

  1. D

    Python Trouble understanding recursion (Python)

    If n<3 is your "base case". It is not defined here what fd() does, but the important thing is that the recursion tree for Koch() stops here. During the execution of Koch() n will never grow, so you are guaranteed that the base case will be hit at some point. The code below koch(t,m) is not...
  2. D

    C# How can I properly manage instances of forms when hiding and showing in C#?

    Keep track of the other form using a field in your main form: namespace SRV_GUI { public partial class SRSV : Form { private TestForm _otherForm; // instance variable (field) in your main form //... other stuff happens public SRSV() {...
  3. D

    Checking then removing duplicates in array

    The problem could be solved with a Binary search tree. A standard textbook implementation drops duplicate values on insertion.