Mercurial > hg > Database > jungle-sharp
view src/test/csharp/jp.ac.u-ryukyu.ie.cr/data/treemap/TreeMapDelete.cs @ 1:5c58219da97e
fix code TreeMap
author | Kazuma |
---|---|
date | Fri, 01 Jul 2016 11:41:41 +0900 |
parents | dec15de2c6ff |
children | a3af05a061b4 |
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"); } }