Coder Social home page Coder Social logo

Comments (2)

jasonxia17 avatar jasonxia17 commented on June 23, 2024

If a deleted node has pointers pointing to it, what should we do with those pointers after the deletion? I think we should somehow indicate that those pointers are not null; rather, they are pointing to some garbage that we no longer have control over (because that represents what would actually happen in C++ in this scenario).

Figuring out how to undo a delete operation might also be tricky, since we need to restore the pointers that previously pointed to the deleted node.

from data-structures-playground.

SethPoulsen avatar SethPoulsen commented on June 23, 2024

Those are great points. I think part of the design here will end up depending on

  1. the semantics of the language that the students are using along with the tool
  2. if we want to restrict operations in order to teach something

Right now its looking like we are going to end up targeting students have mostly a Java background, so that might make the design a little different.

For now I think I'm going to wait on this until we have a more clear idea of the exact tasks we are going to be asking students to do.

from data-structures-playground.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.