C#
再帰クエリで根付き木を解くコード。 using System.Collections.Generic; using System.Linq; namespace RootedTree { class Program { static void Main(string[] args) { // NodeId,ParentNodeId string[,] src = new string[9,2]{ {"A101", ""}, {"A201",…
再帰クエリで根付き木を解くコード。 using System.Collections.Generic; using System.Linq; namespace RootedTree { class Program { static void Main(string[] args) { // NodeId,ParentNodeId string[,] src = new string[9,2]{ {"A101", ""}, {"A201",…