Spelling Bee Acceptable

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












This is similar to this question.
However, I have a different goal in mind:
Reduce the wordlist to words that could appear.
The easy part is to delete hyphens and similar.



The hard part, however: Remove words containing more than seven letters.



So, the problem:

Given a set of words containing only lowercase (or uppercase) ASCII letters, remove the words containing eight or more different letters.



Any input and output format is acceptable.



Standard loophole rules apply.



Space to beat: 307 bytes of C compiling without errors or warnings.



Shortest byte count wins, assuming it's less than 307 bytes.



Clever solutions are better, and faster is better as well.










share|improve this question

















  • 2




    Could you include a test case?
    – Dennis
    7 hours ago






  • 7




    It's generally bad practice to have an upper limit on the score. The reason is that some languages are especially verbose or difficult to program in, and the 307 byte requirement would arbitrarily disallow them from competing.
    – Nathan Merrill
    7 hours ago














up vote
2
down vote

favorite












This is similar to this question.
However, I have a different goal in mind:
Reduce the wordlist to words that could appear.
The easy part is to delete hyphens and similar.



The hard part, however: Remove words containing more than seven letters.



So, the problem:

Given a set of words containing only lowercase (or uppercase) ASCII letters, remove the words containing eight or more different letters.



Any input and output format is acceptable.



Standard loophole rules apply.



Space to beat: 307 bytes of C compiling without errors or warnings.



Shortest byte count wins, assuming it's less than 307 bytes.



Clever solutions are better, and faster is better as well.










share|improve this question

















  • 2




    Could you include a test case?
    – Dennis
    7 hours ago






  • 7




    It's generally bad practice to have an upper limit on the score. The reason is that some languages are especially verbose or difficult to program in, and the 307 byte requirement would arbitrarily disallow them from competing.
    – Nathan Merrill
    7 hours ago












up vote
2
down vote

favorite









up vote
2
down vote

favorite











This is similar to this question.
However, I have a different goal in mind:
Reduce the wordlist to words that could appear.
The easy part is to delete hyphens and similar.



The hard part, however: Remove words containing more than seven letters.



So, the problem:

Given a set of words containing only lowercase (or uppercase) ASCII letters, remove the words containing eight or more different letters.



Any input and output format is acceptable.



Standard loophole rules apply.



Space to beat: 307 bytes of C compiling without errors or warnings.



Shortest byte count wins, assuming it's less than 307 bytes.



Clever solutions are better, and faster is better as well.










share|improve this question













This is similar to this question.
However, I have a different goal in mind:
Reduce the wordlist to words that could appear.
The easy part is to delete hyphens and similar.



The hard part, however: Remove words containing more than seven letters.



So, the problem:

Given a set of words containing only lowercase (or uppercase) ASCII letters, remove the words containing eight or more different letters.



Any input and output format is acceptable.



Standard loophole rules apply.



Space to beat: 307 bytes of C compiling without errors or warnings.



Shortest byte count wins, assuming it's less than 307 bytes.



Clever solutions are better, and faster is better as well.







code-golf






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 7 hours ago









NoLongerBreathedIn

543




543







  • 2




    Could you include a test case?
    – Dennis
    7 hours ago






  • 7




    It's generally bad practice to have an upper limit on the score. The reason is that some languages are especially verbose or difficult to program in, and the 307 byte requirement would arbitrarily disallow them from competing.
    – Nathan Merrill
    7 hours ago












  • 2




    Could you include a test case?
    – Dennis
    7 hours ago






  • 7




    It's generally bad practice to have an upper limit on the score. The reason is that some languages are especially verbose or difficult to program in, and the 307 byte requirement would arbitrarily disallow them from competing.
    – Nathan Merrill
    7 hours ago







2




2




Could you include a test case?
– Dennis
7 hours ago




Could you include a test case?
– Dennis
7 hours ago




7




7




It's generally bad practice to have an upper limit on the score. The reason is that some languages are especially verbose or difficult to program in, and the 307 byte requirement would arbitrarily disallow them from competing.
– Nathan Merrill
7 hours ago




It's generally bad practice to have an upper limit on the score. The reason is that some languages are especially verbose or difficult to program in, and the 307 byte requirement would arbitrarily disallow them from competing.
– Nathan Merrill
7 hours ago










9 Answers
9






active

oldest

votes

















up vote
3
down vote














05AB1E, 5 bytes



ʒÙg8‹


Try it online.



Explanation:





ʒ # Filter the (implicit) input-list by:
Ù # Only leave distinct letters of the word
g # Take its length
8‹ # And only leave those with a length smaller than 8
# (And output implicitly after we're done filtering)





share|improve this answer



























    up vote
    2
    down vote














    Perl 6, 20 bytes





    *.grep(8>*.comb.Set)


    Try it online!



    Filters by words that have a set of letters with size less than 8.






    share|improve this answer



























      up vote
      2
      down vote














      Jelly, 6 bytes



      Qṫ¥Ðḟ8


      Try it online!



      How it works



      Qṫ¥Ðḟ8 Main link. Argument: A (array or words)

      Ðḟ Filterfalse; only keep the words W of A for which the chain to the left
      returns a falsy value.
      ¥ Combine the two links to the left into a dyadic chain.
      Q Unique; remove duplicate letters from W.
      ṫ 8 Tail 8; remove the first 7 letters of the result.





      share|improve this answer



























        up vote
        2
        down vote














        APL (Dyalog Unicode), 11 bytes





        ⍵/⍨8>≢∪⍵¨


        Takes input as a list of strings.



        ⍵/⍨8>≢∪⍵¨
        ⍵¨ for each word
        ∪ take unique letters
        8>≢ length less than 8 as a boolean (0 or 1)
        ⍵/⍨ repeat word that many times


        Try it online!






        share|improve this answer



























          up vote
          2
          down vote













          J, 10 bytes



          #~9>#@~.@>


          explanation



          #~ 9 > #@~.@>
          #~ NB. filter the input based on...
          9 > NB. is 9 greater than...
          #@ NB. the length of...
          ~.@ NB. the unique characters of...
          > NB. the unboxed input.


          Try it online!






          share|improve this answer




















          • Shouldn't 9 be 8?
            – Galen Ivanov
            1 hour ago

















          up vote
          1
          down vote














          Python 2, 40 bytes





          lambda i:[x for x in i if len(set(x))<8]


          Try it online!



          Test cases borrowed from @Dennis. Input and output are both lists.






          share|improve this answer



























            up vote
            0
            down vote













            My solution (implementing a quite clever O(n) algorithm):



            #include <stdio.h> 
            #include <stdint.h>

            int main(void)
            char str[1024];
            while(scanf("%sn", str) == 1)
            uint32_t st = 0;
            int s = 0;
            for(char *p = str; *p && s <= 7; p++)
            s += ~st >> (*p - 'a') & 1;
            st
            if(s <= 7)
            printf("%sn", str);







            share|improve this answer
















            • 1




              You can remove a lot of whitespace from your answer, and make some of your variable names shorter
              – Jo King
              7 hours ago










            • Disclaimer: I don't even know what this language is, but I got it down to 169 bytes and I think(?) nothing should be broken... :P
              – Quintec
              7 hours ago










            • Since this is code golf, you should mention the byte count (and the language's name) in the header. You should also try to make you code as short as possible. If this is merely intended as a non-competitive reference implementation, is should be part of the question, not a standalone answer.
              – Dennis
              6 hours ago

















            up vote
            0
            down vote














            Red, 54 bytes



            func[b][foreach a b[if 8 > length? unique a[print a]]]


            Try it online!



            The first test set was taken from Dennis'






            share|improve this answer



























              up vote
              0
              down vote














              Racket, 95 bytes



              (require racket/set)(define(f l)(filter(lambda(x)(<(set-count(list->set(string->list x)))8))l))


              Try it online!



              The test set was taken from Dennis'






              share|improve this answer




















                Your Answer





                StackExchange.ifUsing("editor", function ()
                return StackExchange.using("mathjaxEditing", function ()
                StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
                StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
                );
                );
                , "mathjax-editing");

                StackExchange.ifUsing("editor", function ()
                StackExchange.using("externalEditor", function ()
                StackExchange.using("snippets", function ()
                StackExchange.snippets.init();
                );
                );
                , "code-snippets");

                StackExchange.ready(function()
                var channelOptions =
                tags: "".split(" "),
                id: "200"
                ;
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function()
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled)
                StackExchange.using("snippets", function()
                createEditor();
                );

                else
                createEditor();

                );

                function createEditor()
                StackExchange.prepareEditor(
                heartbeatType: 'answer',
                convertImagesToLinks: false,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: null,
                bindNavPrevention: true,
                postfix: "",
                imageUploader:
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                ,
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                );



                );













                 

                draft saved


                draft discarded


















                StackExchange.ready(
                function ()
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f175559%2fspelling-bee-acceptable%23new-answer', 'question_page');

                );

                Post as a guest






























                9 Answers
                9






                active

                oldest

                votes








                9 Answers
                9






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes








                up vote
                3
                down vote














                05AB1E, 5 bytes



                ʒÙg8‹


                Try it online.



                Explanation:





                ʒ # Filter the (implicit) input-list by:
                Ù # Only leave distinct letters of the word
                g # Take its length
                8‹ # And only leave those with a length smaller than 8
                # (And output implicitly after we're done filtering)





                share|improve this answer
























                  up vote
                  3
                  down vote














                  05AB1E, 5 bytes



                  ʒÙg8‹


                  Try it online.



                  Explanation:





                  ʒ # Filter the (implicit) input-list by:
                  Ù # Only leave distinct letters of the word
                  g # Take its length
                  8‹ # And only leave those with a length smaller than 8
                  # (And output implicitly after we're done filtering)





                  share|improve this answer






















                    up vote
                    3
                    down vote










                    up vote
                    3
                    down vote










                    05AB1E, 5 bytes



                    ʒÙg8‹


                    Try it online.



                    Explanation:





                    ʒ # Filter the (implicit) input-list by:
                    Ù # Only leave distinct letters of the word
                    g # Take its length
                    8‹ # And only leave those with a length smaller than 8
                    # (And output implicitly after we're done filtering)





                    share|improve this answer













                    05AB1E, 5 bytes



                    ʒÙg8‹


                    Try it online.



                    Explanation:





                    ʒ # Filter the (implicit) input-list by:
                    Ù # Only leave distinct letters of the word
                    g # Take its length
                    8‹ # And only leave those with a length smaller than 8
                    # (And output implicitly after we're done filtering)






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered 1 hour ago









                    Kevin Cruijssen

                    33.1k554176




                    33.1k554176




















                        up vote
                        2
                        down vote














                        Perl 6, 20 bytes





                        *.grep(8>*.comb.Set)


                        Try it online!



                        Filters by words that have a set of letters with size less than 8.






                        share|improve this answer
























                          up vote
                          2
                          down vote














                          Perl 6, 20 bytes





                          *.grep(8>*.comb.Set)


                          Try it online!



                          Filters by words that have a set of letters with size less than 8.






                          share|improve this answer






















                            up vote
                            2
                            down vote










                            up vote
                            2
                            down vote










                            Perl 6, 20 bytes





                            *.grep(8>*.comb.Set)


                            Try it online!



                            Filters by words that have a set of letters with size less than 8.






                            share|improve this answer













                            Perl 6, 20 bytes





                            *.grep(8>*.comb.Set)


                            Try it online!



                            Filters by words that have a set of letters with size less than 8.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered 7 hours ago









                            Jo King

                            18.6k241101




                            18.6k241101




















                                up vote
                                2
                                down vote














                                Jelly, 6 bytes



                                Qṫ¥Ðḟ8


                                Try it online!



                                How it works



                                Qṫ¥Ðḟ8 Main link. Argument: A (array or words)

                                Ðḟ Filterfalse; only keep the words W of A for which the chain to the left
                                returns a falsy value.
                                ¥ Combine the two links to the left into a dyadic chain.
                                Q Unique; remove duplicate letters from W.
                                ṫ 8 Tail 8; remove the first 7 letters of the result.





                                share|improve this answer
























                                  up vote
                                  2
                                  down vote














                                  Jelly, 6 bytes



                                  Qṫ¥Ðḟ8


                                  Try it online!



                                  How it works



                                  Qṫ¥Ðḟ8 Main link. Argument: A (array or words)

                                  Ðḟ Filterfalse; only keep the words W of A for which the chain to the left
                                  returns a falsy value.
                                  ¥ Combine the two links to the left into a dyadic chain.
                                  Q Unique; remove duplicate letters from W.
                                  ṫ 8 Tail 8; remove the first 7 letters of the result.





                                  share|improve this answer






















                                    up vote
                                    2
                                    down vote










                                    up vote
                                    2
                                    down vote










                                    Jelly, 6 bytes



                                    Qṫ¥Ðḟ8


                                    Try it online!



                                    How it works



                                    Qṫ¥Ðḟ8 Main link. Argument: A (array or words)

                                    Ðḟ Filterfalse; only keep the words W of A for which the chain to the left
                                    returns a falsy value.
                                    ¥ Combine the two links to the left into a dyadic chain.
                                    Q Unique; remove duplicate letters from W.
                                    ṫ 8 Tail 8; remove the first 7 letters of the result.





                                    share|improve this answer













                                    Jelly, 6 bytes



                                    Qṫ¥Ðḟ8


                                    Try it online!



                                    How it works



                                    Qṫ¥Ðḟ8 Main link. Argument: A (array or words)

                                    Ðḟ Filterfalse; only keep the words W of A for which the chain to the left
                                    returns a falsy value.
                                    ¥ Combine the two links to the left into a dyadic chain.
                                    Q Unique; remove duplicate letters from W.
                                    ṫ 8 Tail 8; remove the first 7 letters of the result.






                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered 7 hours ago









                                    Dennis

                                    183k32293727




                                    183k32293727




















                                        up vote
                                        2
                                        down vote














                                        APL (Dyalog Unicode), 11 bytes





                                        ⍵/⍨8>≢∪⍵¨


                                        Takes input as a list of strings.



                                        ⍵/⍨8>≢∪⍵¨
                                        ⍵¨ for each word
                                        ∪ take unique letters
                                        8>≢ length less than 8 as a boolean (0 or 1)
                                        ⍵/⍨ repeat word that many times


                                        Try it online!






                                        share|improve this answer
























                                          up vote
                                          2
                                          down vote














                                          APL (Dyalog Unicode), 11 bytes





                                          ⍵/⍨8>≢∪⍵¨


                                          Takes input as a list of strings.



                                          ⍵/⍨8>≢∪⍵¨
                                          ⍵¨ for each word
                                          ∪ take unique letters
                                          8>≢ length less than 8 as a boolean (0 or 1)
                                          ⍵/⍨ repeat word that many times


                                          Try it online!






                                          share|improve this answer






















                                            up vote
                                            2
                                            down vote










                                            up vote
                                            2
                                            down vote










                                            APL (Dyalog Unicode), 11 bytes





                                            ⍵/⍨8>≢∪⍵¨


                                            Takes input as a list of strings.



                                            ⍵/⍨8>≢∪⍵¨
                                            ⍵¨ for each word
                                            ∪ take unique letters
                                            8>≢ length less than 8 as a boolean (0 or 1)
                                            ⍵/⍨ repeat word that many times


                                            Try it online!






                                            share|improve this answer













                                            APL (Dyalog Unicode), 11 bytes





                                            ⍵/⍨8>≢∪⍵¨


                                            Takes input as a list of strings.



                                            ⍵/⍨8>≢∪⍵¨
                                            ⍵¨ for each word
                                            ∪ take unique letters
                                            8>≢ length less than 8 as a boolean (0 or 1)
                                            ⍵/⍨ repeat word that many times


                                            Try it online!







                                            share|improve this answer












                                            share|improve this answer



                                            share|improve this answer










                                            answered 6 hours ago









                                            Quintec

                                            1,115517




                                            1,115517




















                                                up vote
                                                2
                                                down vote













                                                J, 10 bytes



                                                #~9>#@~.@>


                                                explanation



                                                #~ 9 > #@~.@>
                                                #~ NB. filter the input based on...
                                                9 > NB. is 9 greater than...
                                                #@ NB. the length of...
                                                ~.@ NB. the unique characters of...
                                                > NB. the unboxed input.


                                                Try it online!






                                                share|improve this answer




















                                                • Shouldn't 9 be 8?
                                                  – Galen Ivanov
                                                  1 hour ago














                                                up vote
                                                2
                                                down vote













                                                J, 10 bytes



                                                #~9>#@~.@>


                                                explanation



                                                #~ 9 > #@~.@>
                                                #~ NB. filter the input based on...
                                                9 > NB. is 9 greater than...
                                                #@ NB. the length of...
                                                ~.@ NB. the unique characters of...
                                                > NB. the unboxed input.


                                                Try it online!






                                                share|improve this answer




















                                                • Shouldn't 9 be 8?
                                                  – Galen Ivanov
                                                  1 hour ago












                                                up vote
                                                2
                                                down vote










                                                up vote
                                                2
                                                down vote









                                                J, 10 bytes



                                                #~9>#@~.@>


                                                explanation



                                                #~ 9 > #@~.@>
                                                #~ NB. filter the input based on...
                                                9 > NB. is 9 greater than...
                                                #@ NB. the length of...
                                                ~.@ NB. the unique characters of...
                                                > NB. the unboxed input.


                                                Try it online!






                                                share|improve this answer












                                                J, 10 bytes



                                                #~9>#@~.@>


                                                explanation



                                                #~ 9 > #@~.@>
                                                #~ NB. filter the input based on...
                                                9 > NB. is 9 greater than...
                                                #@ NB. the length of...
                                                ~.@ NB. the unique characters of...
                                                > NB. the unboxed input.


                                                Try it online!







                                                share|improve this answer












                                                share|improve this answer



                                                share|improve this answer










                                                answered 5 hours ago









                                                Jonah

                                                1,772816




                                                1,772816











                                                • Shouldn't 9 be 8?
                                                  – Galen Ivanov
                                                  1 hour ago
















                                                • Shouldn't 9 be 8?
                                                  – Galen Ivanov
                                                  1 hour ago















                                                Shouldn't 9 be 8?
                                                – Galen Ivanov
                                                1 hour ago




                                                Shouldn't 9 be 8?
                                                – Galen Ivanov
                                                1 hour ago










                                                up vote
                                                1
                                                down vote














                                                Python 2, 40 bytes





                                                lambda i:[x for x in i if len(set(x))<8]


                                                Try it online!



                                                Test cases borrowed from @Dennis. Input and output are both lists.






                                                share|improve this answer
























                                                  up vote
                                                  1
                                                  down vote














                                                  Python 2, 40 bytes





                                                  lambda i:[x for x in i if len(set(x))<8]


                                                  Try it online!



                                                  Test cases borrowed from @Dennis. Input and output are both lists.






                                                  share|improve this answer






















                                                    up vote
                                                    1
                                                    down vote










                                                    up vote
                                                    1
                                                    down vote










                                                    Python 2, 40 bytes





                                                    lambda i:[x for x in i if len(set(x))<8]


                                                    Try it online!



                                                    Test cases borrowed from @Dennis. Input and output are both lists.






                                                    share|improve this answer













                                                    Python 2, 40 bytes





                                                    lambda i:[x for x in i if len(set(x))<8]


                                                    Try it online!



                                                    Test cases borrowed from @Dennis. Input and output are both lists.







                                                    share|improve this answer












                                                    share|improve this answer



                                                    share|improve this answer










                                                    answered 2 hours ago









                                                    ElPedro

                                                    3,3931023




                                                    3,3931023




















                                                        up vote
                                                        0
                                                        down vote













                                                        My solution (implementing a quite clever O(n) algorithm):



                                                        #include <stdio.h> 
                                                        #include <stdint.h>

                                                        int main(void)
                                                        char str[1024];
                                                        while(scanf("%sn", str) == 1)
                                                        uint32_t st = 0;
                                                        int s = 0;
                                                        for(char *p = str; *p && s <= 7; p++)
                                                        s += ~st >> (*p - 'a') & 1;
                                                        st
                                                        if(s <= 7)
                                                        printf("%sn", str);







                                                        share|improve this answer
















                                                        • 1




                                                          You can remove a lot of whitespace from your answer, and make some of your variable names shorter
                                                          – Jo King
                                                          7 hours ago










                                                        • Disclaimer: I don't even know what this language is, but I got it down to 169 bytes and I think(?) nothing should be broken... :P
                                                          – Quintec
                                                          7 hours ago










                                                        • Since this is code golf, you should mention the byte count (and the language's name) in the header. You should also try to make you code as short as possible. If this is merely intended as a non-competitive reference implementation, is should be part of the question, not a standalone answer.
                                                          – Dennis
                                                          6 hours ago














                                                        up vote
                                                        0
                                                        down vote













                                                        My solution (implementing a quite clever O(n) algorithm):



                                                        #include <stdio.h> 
                                                        #include <stdint.h>

                                                        int main(void)
                                                        char str[1024];
                                                        while(scanf("%sn", str) == 1)
                                                        uint32_t st = 0;
                                                        int s = 0;
                                                        for(char *p = str; *p && s <= 7; p++)
                                                        s += ~st >> (*p - 'a') & 1;
                                                        st
                                                        if(s <= 7)
                                                        printf("%sn", str);







                                                        share|improve this answer
















                                                        • 1




                                                          You can remove a lot of whitespace from your answer, and make some of your variable names shorter
                                                          – Jo King
                                                          7 hours ago










                                                        • Disclaimer: I don't even know what this language is, but I got it down to 169 bytes and I think(?) nothing should be broken... :P
                                                          – Quintec
                                                          7 hours ago










                                                        • Since this is code golf, you should mention the byte count (and the language's name) in the header. You should also try to make you code as short as possible. If this is merely intended as a non-competitive reference implementation, is should be part of the question, not a standalone answer.
                                                          – Dennis
                                                          6 hours ago












                                                        up vote
                                                        0
                                                        down vote










                                                        up vote
                                                        0
                                                        down vote









                                                        My solution (implementing a quite clever O(n) algorithm):



                                                        #include <stdio.h> 
                                                        #include <stdint.h>

                                                        int main(void)
                                                        char str[1024];
                                                        while(scanf("%sn", str) == 1)
                                                        uint32_t st = 0;
                                                        int s = 0;
                                                        for(char *p = str; *p && s <= 7; p++)
                                                        s += ~st >> (*p - 'a') & 1;
                                                        st
                                                        if(s <= 7)
                                                        printf("%sn", str);







                                                        share|improve this answer












                                                        My solution (implementing a quite clever O(n) algorithm):



                                                        #include <stdio.h> 
                                                        #include <stdint.h>

                                                        int main(void)
                                                        char str[1024];
                                                        while(scanf("%sn", str) == 1)
                                                        uint32_t st = 0;
                                                        int s = 0;
                                                        for(char *p = str; *p && s <= 7; p++)
                                                        s += ~st >> (*p - 'a') & 1;
                                                        st
                                                        if(s <= 7)
                                                        printf("%sn", str);








                                                        share|improve this answer












                                                        share|improve this answer



                                                        share|improve this answer










                                                        answered 7 hours ago









                                                        NoLongerBreathedIn

                                                        543




                                                        543







                                                        • 1




                                                          You can remove a lot of whitespace from your answer, and make some of your variable names shorter
                                                          – Jo King
                                                          7 hours ago










                                                        • Disclaimer: I don't even know what this language is, but I got it down to 169 bytes and I think(?) nothing should be broken... :P
                                                          – Quintec
                                                          7 hours ago










                                                        • Since this is code golf, you should mention the byte count (and the language's name) in the header. You should also try to make you code as short as possible. If this is merely intended as a non-competitive reference implementation, is should be part of the question, not a standalone answer.
                                                          – Dennis
                                                          6 hours ago












                                                        • 1




                                                          You can remove a lot of whitespace from your answer, and make some of your variable names shorter
                                                          – Jo King
                                                          7 hours ago










                                                        • Disclaimer: I don't even know what this language is, but I got it down to 169 bytes and I think(?) nothing should be broken... :P
                                                          – Quintec
                                                          7 hours ago










                                                        • Since this is code golf, you should mention the byte count (and the language's name) in the header. You should also try to make you code as short as possible. If this is merely intended as a non-competitive reference implementation, is should be part of the question, not a standalone answer.
                                                          – Dennis
                                                          6 hours ago







                                                        1




                                                        1




                                                        You can remove a lot of whitespace from your answer, and make some of your variable names shorter
                                                        – Jo King
                                                        7 hours ago




                                                        You can remove a lot of whitespace from your answer, and make some of your variable names shorter
                                                        – Jo King
                                                        7 hours ago












                                                        Disclaimer: I don't even know what this language is, but I got it down to 169 bytes and I think(?) nothing should be broken... :P
                                                        – Quintec
                                                        7 hours ago




                                                        Disclaimer: I don't even know what this language is, but I got it down to 169 bytes and I think(?) nothing should be broken... :P
                                                        – Quintec
                                                        7 hours ago












                                                        Since this is code golf, you should mention the byte count (and the language's name) in the header. You should also try to make you code as short as possible. If this is merely intended as a non-competitive reference implementation, is should be part of the question, not a standalone answer.
                                                        – Dennis
                                                        6 hours ago




                                                        Since this is code golf, you should mention the byte count (and the language's name) in the header. You should also try to make you code as short as possible. If this is merely intended as a non-competitive reference implementation, is should be part of the question, not a standalone answer.
                                                        – Dennis
                                                        6 hours ago










                                                        up vote
                                                        0
                                                        down vote














                                                        Red, 54 bytes



                                                        func[b][foreach a b[if 8 > length? unique a[print a]]]


                                                        Try it online!



                                                        The first test set was taken from Dennis'






                                                        share|improve this answer
























                                                          up vote
                                                          0
                                                          down vote














                                                          Red, 54 bytes



                                                          func[b][foreach a b[if 8 > length? unique a[print a]]]


                                                          Try it online!



                                                          The first test set was taken from Dennis'






                                                          share|improve this answer






















                                                            up vote
                                                            0
                                                            down vote










                                                            up vote
                                                            0
                                                            down vote










                                                            Red, 54 bytes



                                                            func[b][foreach a b[if 8 > length? unique a[print a]]]


                                                            Try it online!



                                                            The first test set was taken from Dennis'






                                                            share|improve this answer













                                                            Red, 54 bytes



                                                            func[b][foreach a b[if 8 > length? unique a[print a]]]


                                                            Try it online!



                                                            The first test set was taken from Dennis'







                                                            share|improve this answer












                                                            share|improve this answer



                                                            share|improve this answer










                                                            answered 1 hour ago









                                                            Galen Ivanov

                                                            5,54211031




                                                            5,54211031




















                                                                up vote
                                                                0
                                                                down vote














                                                                Racket, 95 bytes



                                                                (require racket/set)(define(f l)(filter(lambda(x)(<(set-count(list->set(string->list x)))8))l))


                                                                Try it online!



                                                                The test set was taken from Dennis'






                                                                share|improve this answer
























                                                                  up vote
                                                                  0
                                                                  down vote














                                                                  Racket, 95 bytes



                                                                  (require racket/set)(define(f l)(filter(lambda(x)(<(set-count(list->set(string->list x)))8))l))


                                                                  Try it online!



                                                                  The test set was taken from Dennis'






                                                                  share|improve this answer






















                                                                    up vote
                                                                    0
                                                                    down vote










                                                                    up vote
                                                                    0
                                                                    down vote










                                                                    Racket, 95 bytes



                                                                    (require racket/set)(define(f l)(filter(lambda(x)(<(set-count(list->set(string->list x)))8))l))


                                                                    Try it online!



                                                                    The test set was taken from Dennis'






                                                                    share|improve this answer













                                                                    Racket, 95 bytes



                                                                    (require racket/set)(define(f l)(filter(lambda(x)(<(set-count(list->set(string->list x)))8))l))


                                                                    Try it online!



                                                                    The test set was taken from Dennis'







                                                                    share|improve this answer












                                                                    share|improve this answer



                                                                    share|improve this answer










                                                                    answered 37 mins ago









                                                                    Galen Ivanov

                                                                    5,54211031




                                                                    5,54211031



























                                                                         

                                                                        draft saved


                                                                        draft discarded















































                                                                         


                                                                        draft saved


                                                                        draft discarded














                                                                        StackExchange.ready(
                                                                        function ()
                                                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f175559%2fspelling-bee-acceptable%23new-answer', 'question_page');

                                                                        );

                                                                        Post as a guest













































































                                                                        Comments

                                                                        Popular posts from this blog

                                                                        What does second last employer means? [closed]

                                                                        List of Gilmore Girls characters

                                                                        Confectionery