public List<String> wordBreak(final String s, final Set<String> wordDict) {

        final List<String> res = new ArrayList<String>();
        if (s == null || s.isEmpty()) {
            return res;
        }
        helper(s, wordDict, 0, "", res);
        return res;
    }