Share your repls and programming experiences

← Back to all posts
#WEEKLY 18
h
Coder100 (6734)

Weekly 18

Subsets!! You can now find all the possible subsets inside a given word (or number!).

About

I really liked the JSDOC feature (and thanks repl.it for having autocomplete actually working!)

Features

JSDOC POGGGGGGG now you will be able to have types in JS!!! (For good editors, at least)

Closing

Have a great day!

Commentshotnewtop
JosephSanthosh (1106)

When your name is Joseph and you have 1955 subsets:

Mods be like:

Coder100 (6734)

Lol 1955, that makes sense actually

@JosephSanthosh

Leroy01010 (179)

When i was going through your code i saw this:

/**

  • WOOO THIS NEW SYNTAX LOOKS COOLIO
    */
Leroy01010 (179)

YOU ONLY HAVE 10 VOTES:

HarperframeInc (309)

wat
How the heck did you get 10 upvotes for such a minimal program?

Coder100 (6734)

not minimal what are you talking about @HarperframeInc

Coder100 (6734)

im curious about this post too please enlighten me how I got them @RohilPatel

RohilPatel (1070)

Lmao I can't share that out loud! @Coder100

realTronsi (14)

Rip it can't handle my name

Coder100 (6734)

yeah your name is pretty long @realTronsi

realTronsi (14)

@Coder100 cries in 10 character name

Does your permutation take duplicate characters into account?

Leroy01010 (179)

I just put mine-craft then it never stopped...

EDIT: it just has it ended at '986408' words!!

maxyang (57)

I recommend you don't output the entirety of all the possible combinations. It makes the program take quite a while to run. Although I see you found a way to get around the 9-character barrier.

Coder100 (6734)

What 9 char barrier? Anyways, I'm printing them for reference. @maxyang

maxyang (57)

@Coder100 nvm I think it's 10. Basically when you hit 9-10 characters it takes forever to run the code.

HarperframeInc (309)

@maxyang usually a subsets length is the text length to the power of itself (ex. 5^5, 6^6). Suggesting that each permutation takes about 0.005 seconds, so a 10 letter word would take 1 Year to generate if you have an okay computer, but that's only IF your "okay" computer has an almost infinite amount of memory

maxyang (57)

@HarperframeInc Exactly. My code takes a while to run at 9, but at least it RUNS.

Coder100 (6734)

@maxyang argh i should add a no output feature, it's taking forever to print the possiblities

maxyang (57)

@Coder100 Just delete it as a whole, outputting makes your program take a much longer time.

Coder100 (6734)

not accounting for printing, it is pretty fast @maxyang

JosephSanthosh (1106)

Umm what? Did you understand what I said? @Coder100

Highwayman (1340)

Exactly! I didn’t but know you could do docs like that, that’s awesome! Do other Lang’s have that? (On replit I mean)
@Coder100

Coder100 (6734)

@Highwayman pog
the only other one is typescript, the closest would be c++ and C afterwards (with java being 3rd)

Highwayman (1340)

Is it just the same thing syntax in those Lang’s too..?
@Coder100

Coder100 (6734)

@Highwayman nope, it just contains the signature

Highwayman (1340)

:// aw oh well that’s too bad.. @Coder100

Coder100 (6734)

There's more...

0. g
1. go
2. gop
3. gp
4. gpo
5. o
6. og
7. ogp
8. op
9. opg
10. p
11. pg
12. pgo
13. po
14. pog

@ironblockhd

EpicGamer007 (399)

pog, noice. Now how am I gonna port this to java? jk i won't do that. good luck!