摘要:
剑指Offer_面试题58 - II. 左旋转字符串剑指offerContents题目解答解答1:利用substring()方法解答2:遍历字符串总结 题目字符串的左旋转操作是把字符串前面的若干个字符转移到字符串的尾部。请定义一个函数实现字符串左旋转操作的功能。比如,输入字符串"abcdefg"和数字2,该函数将返回左旋转两位得到的结果"cdefgab"。示例 1:输入: s = "abcde... 阅读全文
posted @ 2020-03-03 21:49
Howfar's
阅读(208)
评论(0)
推荐(0)
摘要:
LeetCode Notes_#617 Merge Two Binary Trees Contents 题目解答方法1:递归法方法2:迭代法 题目 Given two binary trees and imagine that when you put one of them to cover th 阅读全文
posted @ 2020-03-03 16:04
Howfar's
阅读(105)
评论(0)
推荐(0)

浙公网安备 33010602011771号