Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Unique Characters Challenge (fun challenge for anybody!)

Here's a quick challenge for anybody who wants to try. This isn't a question, rather it is a challenge just for anyone :)

Here's the challenge: Given a string, try to make a function called is_unique? to see if the string's characters are all unique.

Good luck with the challenge!

You may use any programming language! :)

If you solved the challenge, put your code below.

Spoiler Alert!

Don't read the answers if you want to try solving on your own.

1 Answer

Steven Parker
Steven Parker
243,200 Points

It sounded like it was just for fun until I got to "put your code below".
Then it sounded like you're wanting someone to do your homework for you. :stuck_out_tongue_winking_eye:

If that's not it, perhaps you'd post your own solution first.

I hope this is not a sneaky way to get a homework problem solved. Or maybe it's a creative way. :)

I agree with Steven. You should probably post your own solution or attempt first.

If it is some type of homework problem then I think you'll get better results being up front about it and posting your attempt at it.

No :) I already solved it I just don't want to share it.

Steven Parker
Steven Parker
243,200 Points

You "don't want to share it" — but you want other people to share theirs?

Now I am totally convinced that you're just trying to get someone to do your homework.

Shame on you! :unamused: