String 课程地址 = " http://icourse8.com/reactyuanma.html "; 章节信息 第1章 课程导学 第2章 基础知识 React API 一览 第3章 React中的更新 第4章 Fiber Scheduler 第5章 各类组件的Update 第6章 完成节点任务
String 课程地址 = " http://icourse8.com/reactyuanma.html ";
章节信息
第1章 课程导学
第2章 基础知识 React API 一览
第3章 React中的更新
第4章 Fiber Scheduler
第5章 各类组件的Update
第6章 完成节点任务
第7章 commitRoot
第8章 功能详解:基础
第9章 suspense and priority
第10章 功能详解:Hooks
第11章 课程总结
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; } }