Mercurial > hg > Database > jungle-sharp
view src/test/csharp/jp.ac.u-ryukyu.ie.cr/data/treemap/TreeMapDelete.cs @ 2:a3af05a061b4
fix , but not work.
author | Kazuma |
---|---|
date | Fri, 01 Jul 2016 19:28:57 +0900 |
parents | 5c58219da97e |
children | 79da77797f7e |
line wrap: on
line source
using UnityEngine; using System.Collections; 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++) { 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.Add (i); } foreach(int num in list){ map = map.delete(num); map.checkDepth(); } Debug.Log ("end"); } }