用给定的数字组成最大的3的倍数
题目 给定一个数组,里面有若干个0-9的数字, 可能会重复出现,找出用这些数组成的最大的3的倍数 1int result = solution(int[] array); parameter type meaning array int[] 由0-9的数字组成,可以重复出现 result int 排列array里的数字,得到最大的能被3整除的数 ...
适用于React的Github-Action配置文件
最近想给react配置一个自动构建,在网上查(chao)阅(xi)了许多资料,作为一个缝合怪,终于是把yml文件配置好了 12345678910111213141516171819202122232425262728293031323334353637# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejsname: Node.js CIon: push: branches: [ "master" ] pull_request: branches: [...
Flutter局部跳转
flutter局部跳转的思路其实很简单,只需要在一个控件外创建一个根路由,仿照安卓的命名,我给这个路由起名叫Fragment 123456789101112131415161718class Fragment extends StatelessWidget { final Widget child; final String root; const Fragment({required this.child, this.root = "/", super.key}); @override Widget build(BuildContext context) { return Navigator( initialRoute: root, onGenerateRoute: (RouteSettings settings) { WidgetBuilder builder; builder = (context) => child; ...