React源码深度解析 高级前端工程师必备技能
发布时间:2020-12-15 16:17:15 所属栏目:百科 来源:网络整理
导读:String 课程地址 = " http://icourse8.com/reactyuanma.html "; 章节信息 第1章 课程导学 第2章 基础知识 React API 一览 第3章 React中的更新 第4章 Fiber Scheduler 第5章 各类组件的Update 第6章 完成节点任务 第7章 commitRoot 第8章 功能详解:基础 第9
String 课程地址 = " http://icourse8.com/reactyuanma.html ";
章节信息 class Solution { public boolean isPalindrome(int x) { if (x < 0) return false; int nums = 0; int temp = x; int left,right; while (temp != 0) { temp /= 10; nums++; } left = nums - 1; right = 0; while (left > right) { if (getDigit(x,left--) != getDigit(x,right++)) return false; } return true; } private int getDigit(int x,int i) { x = x / (int)Math.pow(10,i); return x % 10; } } (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |