Recent content by dkMft
-
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...- dkMft
- Post #4
- Forum: Programming and Computer Science
-
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() {...- dkMft
- Post #13
- Forum: Programming and Computer Science
-
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.- dkMft
- Post #11
- Forum: Programming and Computer Science