Skip to content

A new SkipList<int> contains 0 #139

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
Hoodedgull opened this issue May 14, 2020 · 0 comments
Open

A new SkipList<int> contains 0 #139

Hoodedgull opened this issue May 14, 2020 · 0 comments

Comments

@Hoodedgull
Copy link

Describe the bug
A new SkipList<int> contains 0 (zero). It should not contain any numbers before any numbers are added.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new SkipList of integers
    var list = new SkipList<int>();
  2. Check if it contains 0:
    var result = list.Contains(0)
  3. Result is true.

Expected behavior
I would expect (new SkipList<int>()).Contains(0) to return false.

Environmnet:

  • OS: Windows
  • .NET Version: .NET Core v3.1.101
  • IDE: Visual Studio Enterprise 2019
Gutsonok added a commit to Gutsonok/C-Sharp-Algorithms that referenced this issue Aug 5, 2020
Gutsonok added a commit to Gutsonok/C-Sharp-Algorithms that referenced this issue Aug 5, 2020
Gutsonok added a commit to Gutsonok/C-Sharp-Algorithms that referenced this issue Aug 8, 2020
Gutsonok added a commit to Gutsonok/C-Sharp-Algorithms that referenced this issue Aug 8, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant