Two numbers will be given n and k. You need to find number of ways (should be distinct after sorting) n can be written as sum of k numbers. For example, n = 4 k = 3, answer will be 4: {0, 0, 4}, {1, 1, 2}, {0, 2, 2} , {0, 1, 3}
Be the first one to answer
Add answer anonymously...
Top HR questions asked in Quantitative Brokers Financial Software Engineer
>
Quantitative Brokers Financial Software Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app