Skip to main content

Questions tagged [challenge-community]

The tag has no usage guidance, but it has a tag wiki.

Filter by
Sorted by
Tagged with
7 votes
4 answers

Optimal Solution for OddsBeforeEvens Wolfram Challenge

Odds before Evens Given a list of integers, rearrange them so that all of the odd integers appear before all of the even integers, without otherwise changing the order. An obvious solution is ...
Navvye's user avatar
  • 171
7 votes
4 answers

Fill an empty matrix with the depth of its elements

Given an arbitrarily nested empty matrix like for example mat = { {}, {{}, {}}, {{}, {{}}, {}}, {{}, {{}}, {}, {{{}}}} }; and knowing that ...
eldo's user avatar
  • 77.5k
10 votes
6 answers

Replacing consecutive empty sublists with their run-lengths

I have a list like this: ...
Giovanni Russo's user avatar
2 votes
2 answers

How to gather functions which intersect at the same point?

How to gather functions which intersect at the same point (real solution)? func = {2 x, x^2 + 1, (x^3 + 3)/2}; For example, with the list of functions above I ...
emnha's user avatar
  • 2,111
2 votes
1 answer

How does Leafcount work? [closed]

I am curious about how LeafCount works because when I count the number of leaves in my solution to a Wolfram Challenge, I get a much smaller result than those listed on the leaderboard for Multiples ...
Peter Burbery's user avatar
1 vote
0 answers

How to optimize Code for Wolfram Challenges? [closed]

I am wondering if anyone who has knowledge of optimizing programs in the Wolfram language has any advice on how to optimize the following quantities of programs written to solve Wolfram Challenges. I ...
Peter Burbery's user avatar
2 votes
0 answers

How to access submitted answers to Wolfram Challenges? [closed]

I've seen a lot of interesting questions in the Wolfram Challenges here, but I don't know how to look at some of their current best answered code. I see a lot of participants providing a lot of fast ...
A little mouse on the pampas's user avatar
0 votes
1 answer

From a bag of n balls, with c colours, and d draws count how many variations are possible? [closed]

First, the objective is not to use formulas for combinations, or permutations. The objective is to use loops(for, while, etc.) to make Mathematica count the number of possible variations/sequences of ...
An old man in the sea.'s user avatar
12 votes
10 answers

Elegant way to map a function to only the last element of each sublist [duplicate]

Suppose that I have the following list, called test: test = {{{a1}, {a2, a3}}, {{b1}, {b2, b3}}, {{c1}, {c2, c3}}}; Now ...
Andrew's user avatar
  • 10.6k