Mercurial > hg > Database > jungle-sharp
diff src/test/csharp/jp.ac.u-ryukyu.ie.cr/data/treemap/TreeMapDelete.cs @ 7:02b2ab7bffe6
fix
author | Kazuma |
---|---|
date | Tue, 27 Sep 2016 18:36:05 +0900 |
parents | 79da77797f7e |
children |
line wrap: on
line diff
--- a/src/test/csharp/jp.ac.u-ryukyu.ie.cr/data/treemap/TreeMapDelete.cs Tue Jul 05 07:20:41 2016 +0900 +++ b/src/test/csharp/jp.ac.u-ryukyu.ie.cr/data/treemap/TreeMapDelete.cs Tue Sep 27 18:36:05 2016 +0900 @@ -1,5 +1,4 @@ using UnityEngine; -using System.Collections; public class TreeMapDelete : MonoBehaviour { @@ -7,20 +6,18 @@ void Start () { TreeMap<int,int> map = new TreeMap<int, int> (); for (int count = 1; count < 6; count++) { - Debug.Log (count); map = map.put (count, count); - int val = map.get(count); - //Debug.Log ("value : " + val); map.checkDepth (); } // ただ消すための数字をここに入れているだけ - List<int> list = new List<int>(5); - for (int i = 1; i < 5; i++) { - list.addLast (i); + List<int> list = new List<int>(); + for (int count = 1; count < 6; count++) { + list = list.addLast (count); } foreach(int num in list){ + Debug.Log(num); map = map.delete(num); map.checkDepth(); }