Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Find palindromic subsequences in lists
ResourceFunction["PalindromicSubsequences"][list] finds all palindromic subsequences in list. | |
ResourceFunction["PalindromicSubsequences"][list,min] finds all palindromic subsequences in list with at least a length of min. |
Find palindromic subsequences:
In[1]:= |
Out[1]= |
Include single-element palindromes:
In[2]:= |
Out[2]= |
The elements can be anything:
In[3]:= |
Out[3]= |
Find palindromic subsequences in the largest 2-digit 19-smooth number:
In[4]:= |
Out[4]= |
This work is licensed under a Creative Commons Attribution 4.0 International License