Code Monkey home page Code Monkey logo

kothariji / bhimintegers Goto Github PK

View Code? Open in Web Editor NEW
49.0 49.0 12.0 368 KB

BhimIntegers🚀 is a C++ library that is useful when we are dealing with BigIntegers💥💥. We can handle big integers (integers having a size bigger than the long long int data type) and we can perform arithmetic operations📘 like addition, multiplication, subtraction, division, equality check, etc📐📐. Also, there are several functions like factorial, reverse. We can check that a number is a palindromic number, counting occurrences, etc🔎🔎. It has some conversion options to convert a string to bhimInteger etc 📍📍.

License: MIT License

C++ 100.00%
beginner-friendly biginteger biginteger-library bigintegers bignumber cpp digitalocean hacktoberfest hacktoberfest2020 integer opensource strings

bhimintegers's Introduction

GitHub Logo

👨‍💻 I'm a passionate software engineer with 2 years of industry experience crafting captivating web experiences.

⚒️ My expertise lies in React, Javascript, UX/UI design, web performance optimization, and building complex front-ends, including robust Design Systems. I've also ventured into mobile development with React Native.

🖌️ Beyond coding, I excel at web design, crafting stunning landing pages and components with Figma.

✍️ As a technical writer, I've penned articles on competitive programming, web development, and the developer lifestyle.

🏆 My competitive spirit shines through my victories in inter-college coding events and strong performance in global coding challenges.

🤝 Let's collaborate and build something amazing!

Badge

stackoverflow card

Connect with me

Snake Graph

bhimintegers's People

Contributors

kothariji avatar rgroshanrg 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

Watchers

 avatar  avatar  avatar  avatar  avatar

bhimintegers's Issues

add function edge cases

BhimInteger n("-350"); BhimInteger n1("-35"); n = n + n1; cout << n; // output => -085

If we try to add -350 and -35 it gives -085, which is not correct.
Before actual addition in add function, the edge cases should be checked like if both numbers are negative or if one is negative and one is not and perform our expression accordingly.

`division` function breaks the purpose of the library

Problem

The implementation of division breaks the purpose of the library because the second integer must be at most of the size of a long long int.

static string division(string s1, long long int div)

Platforms

All.

Contribute adding new functions !!

Step 1 - Fork this repository.
Step 2 - Clone the repository to yuor local machine.
Step 3 - Resolve this bugs, mentions provided in the Issues section of the repository. Also add a description what changes you ahve done.
Step 4 - Add the changes to your repository.
Step 5 - Create a PULL Request. And that's all.

User Input Handling.

If User/Programmer gives invalid input then it doesn't check for the Validation or Handling the error.

For Example

BhimInteger a("--89");
  BhimInteger b("-70");
  cout << a + b;      // output => **--19**

It gives wrong output which is --19 and this does not mean anything.

So, I would like to work on it and also would like to PR by checking the User Input and Handling, if you permit.

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.