Ad
  • Default User Avatar

    There are so many solutions, it's mindblowing. I just had to delete my comment from before because only now i understand, what you did. I would love to hear your feedback to my task. I know now why Math.Abs didnt work. It was a stupid mistake i made.^^

  • Default User Avatar

    First of all: Thanks a lot. I'll try it again on my own before i look at your solution.
    My question is: Is any loop "bad" for the performance? Or is there a difference between for example for and while in terms of performance?
    Im just thinking about how to solve without iteration. Give me some time, i need to do this on paper first :D

  • Default User Avatar

    Ok danke. Die Foreachschleife hätte mit dem Array auch funktioniert oder? Ja ich habs jetzt langsam raus, wann using und wann nicht. Da geht es lediglich darum, die Methoden und Klassen (etc.?), die verwendet werden, bereitzustellen und das findet man eh auf Microsoft learn. So wie ich das verstanden habe, ist das was nach using kommt ein Namespace.

  • Default User Avatar

    ich habe ein wenig gebraucht bis ich es richtig verstanden habe. Die Liste fängt mit "1" an oder? bei Arrays fängts ja bei "0" an. Da muss man immer ein wenig mitdenken welcher index was ist XD und das mit dem bFirst finde ich auch sehr interessant, weil es rückwärts zu wirken scheint XD. Echt cool. ich muss mir morgen nochmal die collections und generics zu gemüte führen. Vielen Dank für deine Mühe und schönen Abend noch