-
Couldn't load subscription status.
- Fork 5k
Update README.markdown #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Swift 3.0 is going to come out later this year and it removes this kind of for loop:
I also think you can get rid of the You can swap two array elements in Swift with: It is possible to make the bubble sort a little bit more efficient: if no swap was necessary, then the sort is done and you can exit the loop. That should give you something to do. ;-) |
|
@jherna37: Is this something you're willing to work on some more? |
|
Hey sorry for the delay. I just finished my mid term exams and haven't had On Fri, Mar 18, 2016 at 4:16 AM, Matthijs Hollemans <
|
|
No worries. I'll just leave this open until you get a chance to work on it again. |
|
Just for clarification, would you like me to implement this algorithm without the use of for loops? |
|
You can still use for loops, but it must be |
|
I've made the changes to the code. I was wondering if instead of radix sort you'd be open to more algorithm interview questions. I have a few examples from an interview I just came back from and think they'll make a nice addition. |
|
Have you actually tried out those changes? I'm pretty sure it doesn't work like that... Interview questions are very welcome! We already have a few simple ones, but more is better. :-) |
|
Hi @jherna37. We're in the process of cleaning up our pull requests. Would you still like to work on the bubble sort algorithm? |
|
Closing this due to inactivity. @jherna37 feel free to open another PR if you're up for another shot! |
My native programming language is Java and I am new to swift. To the best of my knowledge I have translated from Java to Swift. Thanks for the opportunity and don't be afraid to hurt my feelings. I'm open to any feedback. This was merely the first step of many.