Skip to main content
Code Review

Questions tagged [recursion]

Recursion in computer science is a method of problem solving where the solution to a problem depends on solutions to smaller instances of the same problem.

Filter by
Sorted by
Tagged with
2 votes
1 answer
93 views

I’m working with a MySQL database that models product compositions and raw materials. There are two relevant tables with columns as shown: product_recipes: ...
Boom's user avatar
  • 121
2 votes
1 answer
153 views
5 votes
3 answers
770 views

Intro I have a simple methods that converts the input instances of java.math.BigInteger to checksum. The checksum algorithm sums up all the digits in the input <...
2 votes
0 answers
83 views

This is a follow-up question for A recursive_minmax Template Function Implementation in C++ and A recursive_flatten_view Template Function Implementation in C++. The ...
6 votes
1 answer
939 views

I implemented a function that gets an object and returns its immutable counterpart. If the object contains another mutable object at any level, it freezes it too. Is my code is good and/or can it be ...
5 votes
3 answers
1k views

How can the following recursion + memoization code be converted into a tabulation format dynamic programming solution? The code is working, but I want to improve it. The challenge I am facing is ...
4 votes
2 answers
151 views

I've been toying around with random programming languages for about 15 years. I'm just more of a sysadmin type than a programmer, but I've always wanted to do programming, so here I am. I know a bit ...
5 votes
2 answers
216 views

I have several model classes, let's say A_0, A_1, ..., A_N I have a method A_0.to_A_1() that calls A_1.to_A_2(), ... that calls ..., that calls A_(N-1).to_A_N() So far so good, but A_N may then call ...
5 votes
2 answers
158 views

I should write a CLI through which two Strings can be read in. These two Strings should be checked for whether they are anagrams of each other For both Strings, I should give out all their possible ...
2 votes
1 answer
266 views

I used std::multiset to determine how many times that factor appears. I'd like to know if it can be improved; I've focused on the algorithm rather than the code. ...
ozan's user avatar
  • 53
2 votes
0 answers
52 views

This is a follow-up question for A recursive_replace_copy_if Template Function Implementation in C++. I am trying to implement recursive_replace_copy_if template ...
9 votes
3 answers
682 views

Taking an interest in the challenge presented in this recent Code Review question, I've concocted a C solution (valid as C++, if I'm not mistaken) seeking to reduce both the lines of code and the ...
user avatar
3 votes
1 answer
143 views

I have an object graph which contains two types of objects that I care about: Link objects that contain an ID and a reference to the object with that ID. ...
4 votes
1 answer
95 views

This is a follow-up question for A recursive_flatten Template Function Implementation in C++. I am trying to follow G. Sliepen's answer to create ...
3 votes
1 answer
119 views

This is a follow-up question for A Summation Function For Boost.MultiArray in C++, A recursive_minmax Template Function Implementation in C++ and A recursive_reduce_all Template Function ...

15 30 50 per page
1
2 3 4 5
...
76

AltStyle によって変換されたページ (->オリジナル) /