
本文共 1627 字,大约阅读时间需要 5 分钟。
���������������FJ������������������
������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
������ 1���������������������
���������������������������������������������������������String reverse(String str) { if (str.length() == 0) { // ������������ return ""; } return reverse(str.substring(1)) + str.charAt(0); // ������������ }
������������������������������������������������������������������������������������������������������
������������������������������������������������������������������������������"hello"���������"olleh"��������� 2������������������������������
������������������������������������������������������������String removeSpace(String str) { if (str.length() == 0) { return str; } if (str.charAt(0) == ' ') { return removeSpace(str.substring(1)); } return str + removeSpace(str.substring(1)); }
������������������������������������������������������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������������edit distance���������������������������������������������������������������������������������������������������������������.getFont>(������������)
���������������������������������������������������������������������������������������������������������������������������������������发表评论
最新留言
关于作者
