Giter VIP home page Giter VIP logo

algorithmsanddatastructuresinaction's Introduction

Hi everyone πŸ‘‹

Grokking data structures cover Advanced Algorithms and data structures

I'm Marcello, a computer scientist/software engineer, globetrotter and author.

I was born in the South of Italy, raised in Messina, studied in Catania, then lived in Brussels, Naples, Rome, Dublin, Zurich. (And a few more...)

I'm the author of:

  1. Grokking Data Structures, take a peek on Manning's livebook or check out this repository with the code.
  2. Advanced Algorithms and Data Structures, take a peek on Manning's livebook or check out this repository with the code.

(All the code for the books is free to access)

I'm a backend software engineer, I had the privilege to worke as a full-stack engineer and machine learning engineer for Apple, Microsoft and Twitter.

  • πŸ”­ I’m working on
  • 🌱 I’m learning quantum computing
  • πŸ’¬ Ask me about: algorithms | machine learning | web applications | system design | quantum computing | JavaScript | Python | Java | Scala
  • ⚑ Fun fact: I will come up with something, one day, I swear...
  • πŸ“« How to reach me:

Twitter Instagram

algorithmsanddatastructuresinaction's People

Contributors

dependabot[bot] avatar lgtm-migrator avatar mlarocca avatar nspranav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

algorithmsanddatastructuresinaction's Issues

Question about treap insertion pseudo code, chapter 3, page 84

Hi, this is a question about the book, I hope it's ok if I file it here.

I'm implementing the treap data structure from chapter 3, and I have problems making the insertion code work, page 84.

In particular, these lines of the pseudo-code seems contradictory to the text describing it.

The code:

  if node.key <= key then
    node ← node.left
  else
    node ← node.right

The description:

Checks how the new key compares to current node’s key; if it’s not larger, we take the left branch.

It seems that in the code we take the left branch if the new key is larger, contrary to the description.

My tests also seem to show me that making the code match the description seems to work as intended, so it seems the description is right, not the code (?) Please test further if relevant.

  if key <= node.key then
    node ← node.left
  else
    node ← node.right

Also, suggestion: maybe avoiding negative formulation like "if it's not larger" would make the description easier to understand ?

Thank you for the book, I hope this helps if I spotted a mistake, and I hope to learn something if I'm wrong and I misunderstood a part of the implementation. Sorry if it was reported before, I did not find it in the erratum.

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.