We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After adding some random items to the circular buffer, using foreach or any function to enumerate the buffer does not produce anything
Here is a sample code:
`int[] values = new int[20]; Random rnd = new Random();
for (int i = 0; i < values.Length; i++) values[i] = rnd.Next(1, 99);
CircularBuffer buffer = new CircularBuffer(values.Length / 2);
Console.WriteLine(string.Join(", ", values));
foreach (int value in values) buffer.Add(value);
Console.WriteLine(string.Join(", ", buffer));
Console.ReadKey();`
Expected behavior 2 lines should be printed: 1 for the array content joined by ',' and another line for the content of the buffer joined by ','
The text was updated successfully, but these errors were encountered:
Thanks for supporting the development of C# Algorithms with your first issue! We look forward to handling it.
Sorry, something went wrong.
No branches or pull requests
After adding some random items to the circular buffer, using foreach or any function to enumerate the buffer does not produce anything
Here is a sample code:
`int[] values = new int[20];
Random rnd = new Random();
for (int i = 0; i < values.Length; i++)
values[i] = rnd.Next(1, 99);
CircularBuffer buffer = new CircularBuffer(values.Length / 2);
Console.WriteLine(string.Join(", ", values));
foreach (int value in values)
buffer.Add(value);
Console.WriteLine(string.Join(", ", buffer));
Console.ReadKey();`
Expected behavior
2 lines should be printed: 1 for the array content joined by ',' and another line for the content of the buffer joined by ','
The text was updated successfully, but these errors were encountered: