Skip to content
New issue

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

Ill logic of MutableLinkedList.node #795

Open
algorithmx opened this issue Mar 24, 2022 · 1 comment
Open

Ill logic of MutableLinkedList.node #795

algorithmx opened this issue Mar 24, 2022 · 1 comment

Comments

@algorithmx
Copy link

node::ListNode{T}

Code

A = MutableLinkedList{Int}(1,2,3)
node = A.node
for i=1:8
    println(node.data)
    node = node.next
end

Result

140155178173488
1
2
3
140155178173488
1
2
3

Version

julia> versioninfo()
Julia Version 1.7.2
Commit bf53498635 (2022-02-06 15:21 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, skylake)
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 

julia> 

@algorithmx
Copy link
Author

related issue
#794

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant