Skip to main content
puls99's user avatar
puls99's user avatar
puls99's user avatar
puls99
  • Member for 7 years, 1 month
  • Last seen more than 3 years ago
awarded
awarded
awarded
awarded
accepted
comment
Simple parenthesis removal - JavaScript
Open is the index of the "deepest" '(' parenthesis and Close is the index of "deepest" ')'. I thought that recursion is easier to understand but a loop would be faster right?
asked
Loading…
asked
Loading…
Loading…
comment
Selection sort implementation in C++
@Incomputable Hello, I tried using the C++ way with iterators. Is it ok? At the moment I am learning new algorithms and I was wondering if is it ok to code like this or should I write them using both ways. The standard library is doing the job for me which is not necessarily good when learning how stuff works behind the scenes. Could you recommend me a book on the new C++? Thanks.
awarded
revised
Selection sort implementation in C++
Added iterator approach.
Loading…
comment
Selection sort implementation in C++
Thank you for the advice. I will try in the future to use the C++ way. Should I stop using normal arrays? Are the iterators the way to go when writing such algorithms? Is there any speed difference?
accepted
asked
Loading…
comment
Bubble sort implementation in C++
Yes you are right I get a runtime error if the size is 0. I did not think about it. Thanks!
accepted
asked
Loading…
accepted
revised
Loading…