Coder Social home page Coder Social logo

amartya-k / recursive-algorithm Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 23.0 348 KB

Make you're first pull request!

C 15.53% Python 16.29% C++ 27.46% Java 37.03% Go 1.56% C# 2.12%
hactoberfest algorithm c cpp python java first-pull-request-and-commit algorithms bash-script perl

recursive-algorithm's Introduction

Recursive-Algorithm

HACTOBERFEST

Make your first pull request.

Task:

-Write any algorithm of your choice in recursive form in any language.

A recursive method is a method that is defined in terms of itself. The general idea behind recursion is that a problem lends itself to a recursive solution if the problem can be broken down into a smaller version of the same problem. A non-CS example of this is the Matroyshka doll. A mathematical example of this is the computation of the factorial of a number. factorial(N) is N*factorial(N-1).

Steps:

  • Fork this Repository using the button at the top
  • Clone your forked repository to your pc
  • Create a new branch for your modifications (ie. git branch new-user and check it out git checkout new-user and git checkout -b new-user)
  • Create your file in a folder and set the folder name to the algorithm's name.
  • Add your files (git add -A), commit (git commit -m "algorithm_name in language_name") and push (git push origin new-user)
  • Create a pull request
  • Star this repository
  • Wait for Pull Request to merge
  • Celebrate - you've done your first pull request!!
  • Additional: You can add yourself to the contributors list by editing the README.md file.

Note:

  • Upload your own file.
  • Do not modify other's file.
  • Give some working test cases.
  • PR for similar implementation in similar language won't be considered or accepted.

CONTRIBUTORS

Sl. No. Name Institution Country Language Added
1 Amartya Kalapahar N.M.A.M. Institute Of Technology, Nitte India C
2 Ajit Panigrahi GITAM, Visakhapatnam Campus India Python
3 Sayan Deb Sarkar India C++
4 Nidhi Shetty India C++
5 Marco Wang University of Taipei Taiwan Java
6 Rohit Kumar BIET Jhansi India Java
7 Ravi Ranjan Singh India Java
8 Vishal Agrawal BIET Jhansi India Python
9 Sanya Gupta India C
10 Omar Ahmed Egypt C++
11 Ghanender Singhl NIT WARANGAL India Python

recursive-algorithm's People

Contributors

aesophor avatar ajitzero avatar amartya-k avatar armanguptaiisc avatar bhupendra1995 avatar chandantaneja avatar getmyfile avatar ghanender-chauhan avatar jaylalakiya avatar kehsihba19 avatar nandinimundra-8 avatar navtikakumar avatar nids98 avatar omarahmed1111 avatar punitsharma077 avatar pushpneetsingh avatar raghavs821 avatar rahul975337 avatar rcoder23 avatar rohansp avatar rohitkumar-rk avatar sanya2701 avatar sayands avatar shravanbhat avatar vinayskywalker avatar vishalagrawalit avatar vitrag09 avatar yash9685 avatar yashmirge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

recursive-algorithm's Issues

Contributors List

After writing your algorithm and doing all the necessary stuff add yourself to the contributors list in the README file. This will show your hard work and determination. Thanks a-lot for participating.

Multiply two strings

Write a program to multiply two strings.
Eg:

string1 = "12" 
string2 = "5"
Output = "60"

Input size can by anything(might exceed unsigned long long int if using c++).
Any other languages please try to do it without using inbuilt methods.
Hint: Represent the number as array.

Four adjacent digits problem

The four adjacent digits in the 1000-digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832.

73167176531330624919225119674426574742355349194934 96983520312774506326239578318016984801869478851843 85861560789112949495459501737958331952853208805511 12540698747158523863050715693290963295227443043557 66896648950445244523161731856403098711121722383113 62229893423380308135336276614282806444486645238749 30358907296290491560440772390713810515859307960866 70172427121883998797908792274921901699720888093776 65727333001053367881220235421809751254540594752243 52584907711670556013604839586446706324415722155397 53697817977846174064955149290862569321978468622482 83972241375657056057490261407972968652414535100474 82166370484403199890008895243450658541227588666881 16427171479924442928230863465674813919123162824586 17866458359124566529476545682848912883142607690042 24219022671055626321111109370544217506941658960408 07198403850962455444362981230987879927244284909188 84580156166097919133875499200524063689912560717606 05886116467109405077541002256983155200055935729725 71636269561882670428252483600823257530420752963450

(ignore the spaces)

Find the thirteen adjacent digits in the 1000-digit number that have the greatest product. What is the value of this product?

Algorithm Ideas

Ideas:

  1. Sorting Algorithms
  2. Searching Algorithms
  3. DP
  4. Graph Algorithms

Please read the steps in README.md carefully before submitting pull request.

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.