Lilac
Lilac
CC#
Created by Lilac on 4/16/2024 in #help
✅ Problems with Dijkstra Algorithm
So this is my take on Dijkstra in C#. After doing everything. My output is completely wrong. Can someone help me with this?
30 replies
CC#
Created by Lilac on 4/15/2024 in #help
✅ How to Implement Dijkstra Algorithm using C#
Hey guys, I'm doing a project that requires me to get Dijkstra Algorithm working in C#. Can you recommend any tutorials or written guide on how to do this?
11 replies
CC#
Created by Lilac on 11/27/2023 in #help
How to indicate whether there are any two rows overlapping
Hey guys, it's 4 a.m right now and I'm still struggling with this question about C# 2D matrix. Enter the nth order square matrix. Indicate whether in the matrix you just entered are any two rows overlapping, if so, indicate which two rows From my research, there are methods like LINQ, groupby... all that stuff, but all of them are really hard for me to comprehend. Please help me
3 replies
CC#
Created by Lilac on 11/22/2023 in #help
C# Cyclic Numbers Array Check Help
I'm doing a homework for my Programming Fundamentals subject, which requires me to enter N numbers into array A, tell if array A is cyclic? This is my progress so far:
c#
namespace _1_Dimensional_Array
{
internal class Program
{
static void Main(string[] args)
{
//formating
Console.OutputEncoding = System.Text.Encoding.Unicode;

//Request User Input
Console.Write("Enter the amount of elements of your array: "); //Determine the amount of numbers in this Array
//Process unwanted inputs
int how_much;
while (true)
{
if (int.TryParse(Console.ReadLine(), out how_much))
{
break;
}
else
{
Console.Write("Enter the amount of elements of your array: ");
}
}

// using Arrays
int[] numbers = new int[how_much]; //create an array based on the user request

// use loops

for (int i = 0; i < numbers.Length; i++)
{
//Store all answers
Console.Write($"Give me the {i} element of Array A: ");
int element_number = Convert.ToInt32(Console.ReadLine());
}



Console.ReadKey();
}
}
}
c#
namespace _1_Dimensional_Array
{
internal class Program
{
static void Main(string[] args)
{
//formating
Console.OutputEncoding = System.Text.Encoding.Unicode;

//Request User Input
Console.Write("Enter the amount of elements of your array: "); //Determine the amount of numbers in this Array
//Process unwanted inputs
int how_much;
while (true)
{
if (int.TryParse(Console.ReadLine(), out how_much))
{
break;
}
else
{
Console.Write("Enter the amount of elements of your array: ");
}
}

// using Arrays
int[] numbers = new int[how_much]; //create an array based on the user request

// use loops

for (int i = 0; i < numbers.Length; i++)
{
//Store all answers
Console.Write($"Give me the {i} element of Array A: ");
int element_number = Convert.ToInt32(Console.ReadLine());
}



Console.ReadKey();
}
}
}
14 replies