15,884,298 members
Home / Discussions / Algorithms

# Algorithms

 Long Division / Assembly Language Style C-P-User-313-Oct-20 4:34 C-P-User-3 13-Oct-20 4:34
 Re: Long Division / Assembly Language Style Richard Deeming13-Oct-20 4:53 Richard Deeming 13-Oct-20 4:53
 Re: Long Division / Assembly Language Style harold aptroot13-Oct-20 5:31 harold aptroot 13-Oct-20 5:31
 Re: Long Division / Assembly Language Style trønderen13-Oct-20 6:25 trønderen 13-Oct-20 6:25
 Re: Long Division / Assembly Language Style Greg Utas13-Oct-20 12:04 Greg Utas 13-Oct-20 12:04
 Re: Long Division / Assembly Language Style Gerry Schmitz13-Oct-20 8:33 Gerry Schmitz 13-Oct-20 8:33
 Re: Long Division / Assembly Language Style Patrice T6-Nov-20 15:46 Patrice T 6-Nov-20 15:46
 Finding possible combinations for tetris-like cages vinaysingh8424-Sep-20 14:25 vinaysingh84 24-Sep-20 14:25
 I'm trying to create/solve a puzzle in which you are given tetris-like cages in which digits will be placed but cannot have 2 digits in the same row or same column. The goal is to determine the possibilities of doubles and triples `[doubles,triples]` for a given cage. For example, with the cage JavaScript ```[[0,1] [1,1]]``` in which `1`'s indicate cells in the cage, up to 1 double (`[1,0]`) is allowed. The restrictions for the cage input is it has a max width of 8, a max height of 3 and max size (# of `1`'s) of 8. Here are some more examples along with there possible outputs: JavaScript ```[[1,1], [1,0], [1,0]] // Output should be [[1,0]]``` JavaScript ```[[1,1], [1,1]] // Output should be [[2,0]]``` JavaScript ```[[1,1], [1,0], [1,1]] // Output should be [[2,0]]``` JavaScript ```[[1,1,1], [1,0,0], [1,0,0]] // Output should be [[2,0]]``` JavaScript ```[[1,1,0], [0,1,1]] // Output should be [[2,0]]``` JavaScript ```[[1,1,0], [0,1,0], [0,1,1]] // Output should be [[2,0],[0,1]]``` JavaScript ```[[1,0,0], [1,1,0], [1,1,1]] // Output should be [[3,0],[1,1]]``` JavaScript ```[[1,1,1], [1,0,1], [1,0,1]] // Output should be [[3,0],[2,1]]``` JavaScript ```[[1,1,1], [1,0,1], [1,1,1]] // Output should be [[4,0],[2,1],[1,2]]``` Please reach out with any questions. I appreciate the help figuring out how to do this programmatically!
 Re: Finding possible combinations for tetris-like cages Gerry Schmitz25-Sep-20 7:41 Gerry Schmitz 25-Sep-20 7:41
 Re: Finding possible combinations for tetris-like cages vinaysingh8429-Sep-20 13:15 vinaysingh84 29-Sep-20 13:15
 Calculate time complexity step by step of given two program program Member 1151248623-Sep-20 0:22 Member 11512486 23-Sep-20 0:22
 Re: Calculate time complexity step by step of given two program program Richard MacCutchan23-Sep-20 3:34 Richard MacCutchan 23-Sep-20 3:34
 Re: Calculate time complexity step by step of given two program program trønderen23-Sep-20 4:07 trønderen 23-Sep-20 4:07
 Re: Calculate time complexity step by step of given two program program Gerry Schmitz24-Sep-20 13:01 Gerry Schmitz 24-Sep-20 13:01
 Random File & Folder Names Richard Andrew x6422-Sep-20 10:42 Richard Andrew x64 22-Sep-20 10:42
 Re: Random File & Folder Names Victor Nijegorodov22-Sep-20 10:56 Victor Nijegorodov 22-Sep-20 10:56
 Re: Random File & Folder Names Richard Andrew x6422-Sep-20 11:06 Richard Andrew x64 22-Sep-20 11:06
 How can I calculate time complexity and compare between given two algorithms? Member 1151248618-Sep-20 18:12 Member 11512486 18-Sep-20 18:12
 Re: How can I calculate time complexity and compare between given two algorithms? Richard MacCutchan18-Sep-20 21:42 Richard MacCutchan 18-Sep-20 21:42
 Re: How can I calculate time complexity and compare between given two algorithms? Member 1151248619-Sep-20 0:45 Member 11512486 19-Sep-20 0:45
 Re: How can I calculate time complexity and compare between given two algorithms? trønderen19-Sep-20 2:43 trønderen 19-Sep-20 2:43
 Re: How can I calculate time complexity and compare between given two algorithms? Richard MacCutchan19-Sep-20 3:01 Richard MacCutchan 19-Sep-20 3:01
 Re: How can I calculate time complexity and compare between given two algorithms? trønderen19-Sep-20 7:06 trønderen 19-Sep-20 7:06
 Re: How can I calculate time complexity and compare between given two algorithms? Richard MacCutchan19-Sep-20 21:05 Richard MacCutchan 19-Sep-20 21:05
 Re: How can I calculate time complexity and compare between given two algorithms? Sandeep Mewara19-Sep-20 0:12 Sandeep Mewara 19-Sep-20 0:12
 Last Visit: 31-Dec-99 18:00     Last Update: 23-Apr-24 10:42 Refresh ᐊ Prev1...891011121314151617 Next ᐅ