leetcode with python:263. Ugly Number

题目: An ugly number is a positive integer whose prime factors are limited to 2, 3, and 5. Given an integer n, return true if n is an ugly number. 给定一数n,判断它是不是ugly number ugly num

leetcode with python:342. Power of Four

题目: Given an integer n, return true if it is a power of four. Otherwise, return false. An integer n is a power of four, if there exists an integer x such that n == 4^x. 给定一数,判断它是否是

我...也想成为火箭队(15) - 试着整理笔记-2 (JavaScript)

今天也是整理笔记,主要是MDN上学习。有一些地方写了连自己都看不懂,但还是可能会用到,逻辑很丑还请见谅。 本笔记DOM比较清楚、物件章节学得很乱,

C#算术运算子(含:小数点加减乘除)程式

!!

Android 生命週期 - Activity

为什么来写这个呢?因为我在面试时发现自己忘光光QQ Activity lifecycle tags: Android activity lifecycle activity doc onCreate 一定要在此做 setContentView() 和 viewModel 关

Android 生命週期 - Fragment

Fragment lifecycle tags: Android lifecycle Fragment doc fragment lifecycle-callback 小规则,fragment的生命週期,一定会比父层短 create - onAttach 当 fragment 和 activity 关联时呼叫

Android 生命週期 - DefaultLifecycleObserver

和生命週期关联的类别 tags: Android lifecycle DefaultLifecycleObserver doc :::info 继承自 DefaultLifecycleObserver 的类别,最主要的用途有两个,一是解决在 fragment 或 act

虾皮商品实作串接笔记-串接 API 虾皮商品 (1)

前言 目标:串接虾皮商品,目前串接虾皮 OpenAPI 2.0 版本,串接手册 这次要串接商品资料会用到的有 get_item_list 取得商品清单get_item_base_info 取得商品基本资

leetcode with python:344. Reverse String

题目: Write a function that reverses a string. The input string is given as an array of characters s. You must do this by modifying the input array in-place with O(1) extra memory. 给定一个由字元

leetcode with python:345. Reverse Vowels of a String

题目: Given a string s, reverse only all the vowels in the string and return it. The vowels are 'a', 'e', 'i', 'o', and 'u', and they can appear in both cases. 给定一个字串,将其里面母音的位

leetcode with python:349. Intersection of Two Arrays

题目: Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must be unique and you may return the result in any order. 给定两个阵列,回传里