my solutions for leadcode