DEV Community

Bruce Axtens
Bruce Axtens

Posted on

2

Doodling in C# at Quora

Today I tried answering some questions over at Quora. They were questions about words and I answered them with word lists and then the C# code I cooked up to generate them. In each case I used a "linuxwords" word-list from Duke University.

The first was asking for 5-letter words starting with 'R'. I had intended originally simply to use a programming language of some sort (C# or maybe deno (seeing as I've just started learning it)) and post the result but someone beat me to it, so I thought I'd add some value by posting code. After that I figured I'd post code every time.

The second question asked for 7-letter palindromes starting with 'R'. The result set was very small: two words.

The third question was poorly worded so I made some guesses about what that OP wanted, implemented those guesses and posted the code. I'm still having this thing with Linq so the code is probably wordier than it could be. Hopefully someone (here or there) will demonstrate a better way.

Have a wander around Quora yourself and see if there's anything there you can solve with some code. It's fun and you may learn something along the way. Maybe have a go at What are 10 letter words with no repeating letters.

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay