New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anupam #3915

Open
wants to merge 4 commits into
base: master
from

Conversation

Projects
None yet
2 participants
@anupamdas104
Copy link

anupamdas104 commented Dec 9, 2018

**Fixes issue: ** #3846

**Changes: ** Added the code to get nth ugly number in C++ using dynamic programming.

#include <iostream>
#include <algorithm>

using namespace std;

This comment has been minimized.

@arnavb

arnavb Jan 10, 2019

Member

Don't use this.

int main()
{
unsigned int n = 15;
cout << n << "th ugly number is: " << ugly_number(n) << endl;

This comment has been minimized.

@arnavb

arnavb Jan 10, 2019

Member

Use \n, not endl.
Add a newline to the end of the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment