Mercurial > hg > Database > jungle-sharp
view src/test/csharp/jp.ac.u-ryukyu.ie.cr/data/treemap/TreeMapDelete.cs @ 4:79da77797f7e
list/List.cs fix, and not work addLast
author | Kazuma |
---|---|
date | Mon, 04 Jul 2016 03:50:34 +0900 |
parents | a3af05a061b4 |
children | 4d08270a61c8 |
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.addLast (i); } foreach(int num in list){ map = map.delete(num); map.checkDepth(); } Debug.Log ("end"); } }