Mercurial > hg > Database > jungle-sharp
view 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 source
using UnityEngine; public class TreeMapDelete : MonoBehaviour { // Use this for initialization void Start () { TreeMap<int,int> map = new TreeMap<int, int> (); for (int count = 1; count < 6; count++) { map = map.put (count, count); map.checkDepth (); } // ただ消すための数字をここに入れているだけ 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(); } Debug.Log ("end"); } }