classSolution{int res =0;privateinttraversal(TreeNode root){if(root ==null)return2;int left =traversal(root.left);int right =traversal(root.right);if(left ==2&& right ==2)return0;if(left ==0|| right ==0){
res++;return1;}if(left ==1|| right ==1)return2;return-1;}publicintminCameraCover(TreeNode root){if(traversal(root)==0) res++;return res;}}
需求:将金额转换成中文大写格式填入单据合计行: _佰_拾_万_仟_佰_拾_元_角_分 1234567.89 壹佰贰拾叁万肆仟伍佰陆拾柒元捌角玖分
1.函数转换
drop function n2C;CREATE FUNCTION n2C (num numeric(14,2))
RETURNS VARCHAR(20)
AS
BEGIN …
集合体系概述 Collection是单列集合的祖宗,它规定的方法(功能)是全部单列集合都会继承的
public class Work1 {public static void main(String[] args) {//简单认识一下Collection集合的特点ArrayList<String> list new ArrayList&…