sorry your algorithm is not working correctly. Any ideas
If you're refering to mine, I would need to see how you are using it. What doesn't work about it? Does it not compile, is it returning the wrong answer, etc.? Give examples if it's not returning the correct answer.