Last active
November 25, 2019 04:47
-
-
Save satoryu/2c6e01e377b1499b2dbdb424407a33dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts (b = 'ボジョレーヌーボー'.split(//)).permutation(b.length).uniq.map(&:join).reject { |s| s =~ /ー+{2,}/ || s =~ /\A[ーョ]/ }.select { |s| s.include? 'ジョ' } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment