Git Product home page Git Product logo

Comments (9)

mawerty avatar mawerty commented on June 27, 2024

I have updated README file. Now it is okay, or did I forget something/did something wrong?

from is-prime.

Acters avatar Acters commented on June 27, 2024

Making the function take the smallest amount of space/data in memory will be the most optimized approach.

from is-prime.

Acters avatar Acters commented on June 27, 2024

To clarify someone asked something like this in StackOverflow https://stackoverflow.com/questions/21757755/what-in-the-function-is-occupying-memory-space

from is-prime.

mawerty avatar mawerty commented on June 27, 2024

The most optimized approach is one that works, and takes least space.

from is-prime.

Acters avatar Acters commented on June 27, 2024

Guidelines should demand that the assembly output of a compiled language should match the assembly code in the repository.

from is-prime.

mawerty avatar mawerty commented on June 27, 2024

Yeah, but then the code would be too complicated and not that fun.

from is-prime.

Acters avatar Acters commented on June 27, 2024

I thought the idea of this was to create an O(1) time complexity that translates to 1 instruction cycle of the CPU. How do all different languages compare to the true assembly approach of XOR eax, eax? Are we truly reaching O(1) time complexity if the code is not fine tuned to match the desired Assembly output?

from is-prime.

mawerty avatar mawerty commented on June 27, 2024

O(1) means that regardless of the number we ask for, the execution time of our program will be constant and always the same

from is-prime.

PalmDevs avatar PalmDevs commented on June 27, 2024

The current one looks okay to me. Closing this

from is-prime.

Related Issues (20)

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.