Code Monkey home page Code Monkey logo

help-de-duplication's Introduction

Gitpod Ready-to-Code Build Status

Hey there, thanks for helping Syed ๐Ÿ˜ƒ

So Syed learned about Set and that set does not store duplicates. Syed was super happy knowing that. Syed had a requirement of getting a list of Points, and he had to deduplicate them. It seemed like Syed found the solution! Just put them in a Set, and it'll automatically deduplicate it for him.

So he went ahead, created Point class and override the equal method. The equality worked like a charm. However much to his surprise, the set did not deduplicate the Points at all ๐Ÿ™„ and he has a failing that he just cannot get to pass.

He verified his understanding of Set with Integers, and it worked just fine. He now wonders if Set deduplicate elements only for pre-defined or if he is doing something wrong. Can you help him pass his test? ๐Ÿค

help-de-duplication's People

Contributors

vishnupriyaramanathan avatar maneesh29s avatar

Watchers

 avatar

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.