摘要: Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: The number of elements initialized in nums1 and num 阅读全文
posted @ 2019-02-24 19:19 Roni_i 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Input: "aba" Output: True Exa 阅读全文
posted @ 2019-02-24 18:26 Roni_i 阅读(209) 评论(0) 推荐(0) 编辑
摘要: Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Input: "hello" Output: "holle" Example 2: Input: "le 阅读全文
posted @ 2019-02-24 17:24 Roni_i 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Given a non-negative integer c, your task is to decide whether there're two integers a and bsuch that a2 + b2 = c. Example 1: Input: 5 Output: True Ex 阅读全文
posted @ 2019-02-24 16:26 Roni_i 阅读(209) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/Roni-i/p/7774100.html https://www.cnblogs.com/Roni-i/p/9253303.html 几百年前就会双指针了,但是Java有些语法还不熟练。。 (ps:双指针利用序列的递增性 阅读全文
posted @ 2019-02-24 16:11 Roni_i 阅读(150) 评论(0) 推荐(0) 编辑