Skip to main content

New answers tagged

3 votes

How to delete lists that contain sublists of different sizes?

n = 4; list = Permutations[Range @ n]; Using Splice (new in 12.1) to get the positions ...
eldo's user avatar
  • 74.9k
2 votes

How do I locate non-numbers

list = {1, 2, 3, 4, 5, 6 p6, 7 p7, 8, 9}; Using SequenceSplit (new in 11.3) ...
eldo's user avatar
  • 74.9k
2 votes

Select from list elements greater than next element

list = {3, 2, 8, 6, 1, 9, 4, 1, 5, 0}; Using SequenceSplit (new in 11.3) ...
eldo's user avatar
  • 74.9k
0 votes

How to find the lowest power of variable in expression?

I recently came across a need for such a program, and below is what ChatGPT came up with: ...
Chloe's user avatar
  • 165
2 votes

Extracting sequences delimited by two String markers from a list

list = {1, 2, 3, "Open", 3, 2, "Close", 9, 3, 4, "Open", 1, 0, "Close", 3, 5}; Using ...
eldo's user avatar
  • 74.9k
2 votes

Specific array filtering - code optimization

Not sure what you consider optimal, but in response to your comment is it possible to do all filtering with one function? you can certainly compose the two operations into one function and even use ...
lericr's user avatar
  • 29.2k
3 votes

DeleteCases for once only

list = {1, 1, 2, 3}; Get positions to delete using PositionIndex ...
eldo's user avatar
  • 74.9k

Top 50 recent answers are included