Estoy tratando de desarrollar un algoritmo en C# que pueda tomar una lista de matrices de URL y darlas como resultado en una lista numerada.numeración de esquema C#
Como se puede imaginar, necesito ayuda. ¿Alguien tiene alguna sugerencia sobre la lógica a usar para generar esta lista?
Ejemplo de salida:
1 - http://www.example.com/aboutus
1.2 - http://www.example.com/aboutus/page1
1.3 - http://www.example.com/aboutus/page2
1.3.1 - http://www.example.com/aboutus/page2/page3
1.3.1.1 - http://www.example.com/aboutus/page2/page3/page4
1.3.2 - http://www.example.com/aboutus/page5/page6
1.3.2.1 - http://www.example.com/aboutus/page5/page7/page9
1.3.2.2 - http://www.example.com/aboutus/page5/page8/page10
1.4 - http://www.example.com/aboutus/page10
1.4.1 - http://www.example.com/aboutus/page10/page11
1.4.2 - http://www.example.com/aboutus/page10/page12
1.1.5 - http://www.example.com/aboutus/page13
1.1.6 - http://www.example.com/aboutus/page14
1.1.6.1 - http://www.example.com/aboutus/page14/page15
1.1.6.2 - http://www.example.com/aboutus/page14/page16
1.1.6.3 - http://www.example.com/aboutus/page14/page17
... y así sucesivamente
hola, ¿no hay un error en 1.3.2 y 1.3.2.1? Llamaría al segundo 1.3.3.1 en su lugar, ¿es así? – Carsten
¿Por qué este >> '1.1.5 - http: // www.example.com/aboutus/page13' ?. ¿Por qué no es '1.5'? – Nawaz
¿La lista está inicialmente ordenada en el orden en que desea numerarla? ¿Por qué 'http: // www.example.com/aboutus/aboutus' no es 1.1? –