Coder Social home page Coder Social logo

juicylulu's Projects

cs61a-1.7--integer-partition-without-recursion icon cs61a-1.7--integer-partition-without-recursion

The number of partitions of a positive integer n, using parts up to size m, is the number of ways in which n can be expressed as the sum of positive integer parts up to m in increasing order. For example, the number of partitions of 6 using parts up to 4 is 9. 6 = 2 + 4 6 = 1 + 1 + 4 6 = 3 + 3 6 = 1 + 2 + 3 6 = 1 + 1 + 1 + 3 6 = 2 + 2 + 2 6 = 1 + 1 + 2 + 2 6 = 1 + 1 + 1 + 1 + 2 6 = 1 + 1 + 1 + 1 + 1 + 1 We will define a function count_partitions(n, m) that returns the number of different partitions of n using parts up to m.

euler-78 icon euler-78

An integer partitioning problem solved using recursion

integerpartition icon integerpartition

The code that can calculate the amount of possible partitions of an integers.

rotateanarray icon rotateanarray

Java program to rotate an array given number of times and print it - O(rotations * arrayLength)

spiralarray icon spiralarray

A method that converts a two-dimensional array to a one-dimensional array in a clockwise direction.

spiralarrayprogram icon spiralarrayprogram

This program will take a N x M array and create a spiral from the top left corner to the right and spiral inwards.

teeofen icon teeofen

Calculates for the running time of code.

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.