Home >Backend Development >C#.Net Tutorial >C# 1,3,5,7 permutations (3 bits) non-recursive
// Deep preferred programs
{
Static and invalid main (string [] args) {
int [] number = int [] {1, 3, 5, 7};
List data = new list {
{N Parent.printf ();
}
Other
{
var testson = number.tolist (); Project;
Node.
Pop();
String D = String D = p value = D 1 and D = D + P);
System.Console.WriteLine(D); DEDATA;
but List();
Public Interpretation GetDeep()
INT I = 0;
VAR P = this point;
I++ ;
String PF = == NULL) NodeData + PF; Parent; String[] args)
; ;
List
does not do the same; =newqueue
Tree roots = new tree ();
树 树 = root;
(true) {
If (Parent.getDeep () == 4)
{
Parent.printf ();
VAR tempSon = number.ToList(); ) Tree Node = New Tree (;
Node. (Node);
)//If (openStack.Count == 0)
use using use using using using using out out out out out out out of ’'s ’ ’ ‐ ‐ ‐‐‐‐‐‐‐‐‐‐Break;
; //openStack.Pop();
Public static void printf(list
String D = "";
data.ForEach(P => D = D + P); System.Console.WriteLine(D); Class tree
{
Public tree parent;
The public interprets nodedata;
public list & lt; tree & gt; son = new list & lt; tree & gt; ();
the public interpret getDeep () {
int i = 0; )
{
{
String PF = "";
VAR P = this;
System.Console.WriteLine (PF); Otherwise
;
}
}