Skip to main content

Timeline for Issue with python recursion

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
May 26, 2017 at 18:43 history edited chepner CC BY-SA 3.0
added 110 characters in body
May 26, 2017 at 18:37 comment added chepner OK, I was confused both about what A^0 should be and how to create a set containing just an empty tuple. Should be fixed now.
May 26, 2017 at 18:36 history edited chepner CC BY-SA 3.0
added 73 characters in body
May 26, 2017 at 18:24 comment added Abdullah Shahriar Always return []
May 26, 2017 at 18:19 comment added Gahan your code will always give [] value as it checks for cartesian_product(set1, n-1) and in recursion, it comes to n=0 and function will return [] always.
May 26, 2017 at 18:15 history answered chepner CC BY-SA 3.0