Android 生命週期 - SavingState

在ui中保存状态 tags: Android doc viewState 只要有 id ,就可以自动保存到 onSaveInstanceState,不用做额外处理 SavedState 对于类别内部分变数,希望可以在旋转或被
Android 生命週期 - ViewModel

ViewModel lifecycle tags: Android lifecycle ViewModel viewModel 规则,viewModel 永远不应知道 view, ui lifecycle 生命週期 生命週期长且简单,当对应的 activity 被销毁时,框架
虾皮商品实作串接笔记-串接 API 虾皮商品(2)

前言 目标:串接虾皮商品,目前串接虾皮 OpenAPI 2.0 版本,串接手册 这次要串接商品资料会用到的有 get_item_list 取得商品清单get_item_base_info 取得商品基本资
leetcode with python:350. Intersection of Two Arrays II

题目: Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must appear as many times as it shows in both arrays and you may return the result in
leetcode with python:367. Valid Perfect Square

题目: Given a positive integer num, write a function which returns True if num is a perfect square else False. Follow up: Do not use any built-in library function such as sqrt. 给定一数,判断它是
leetcode with python:374. Guess Number Higher or Lower

题目: We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wrong, I will tell you whether the number I pic
leetcode with python:16. 3Sum Closest

题目: Given an integer array nums of length n and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the three integers. You may assume that each
我...也想成为火箭队(17) - 迟来的17天準备心得

前言 昨天经过一番波折,总算把要给火箭队的履历给交出去了!接下来就看面试了,来聊聊十七天写文章and準备的心得。 第一次发文的心得 这十七天最原
leetcode with python:17. Letter Combinations of a Phone Numb

题目: Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order. 给定一数字字串,每一数字都