随笔分类 -  LeetCode

摘要:题目链接:https://leetcode-cn.com/problems/reverse-vowels-of-a-string/ 代码: class Solution { public String reverseVowels(String s) { Character[] c = {'a','e 阅读全文
posted @ 2019-11-15 10:46 饶一一 阅读(139) 评论(0) 推荐(0)
摘要:题目链接:https://leetcode-cn.com/problems/sum-of-square-numbers/submissions/ 代码: class Solution { public boolean judgeSquareSum(int c) { long a=0; long b= 阅读全文
posted @ 2019-11-12 09:51 饶一一 阅读(115) 评论(0) 推荐(0)
摘要:题目链接:https://leetcode-cn.com/problems/two-sum-ii-input-array-is-sorted/ 代码: class Solution { public int[] twoSum(int[] numbers, int target) { int i = 阅读全文
posted @ 2019-11-12 09:13 饶一一 阅读(109) 评论(0) 推荐(0)