class Solution {public boolean isPerfectSquare(int num) {int l = 0, r = num, mid = 0;while(l <= r) {mid = l + (r - l) / 2;if((long)mid*mid == num) {return true;} else if ((long)mid*mid > num) {r = mid - 1;} else {l = mid + 1;}}return false;}
}

【leetcode刷题记录】367有效的完全平方数相关推荐

  1. LeetCode刷题记录15——21. Merge Two Sorted Lists(easy)

    LeetCode刷题记录15--21. Merge Two Sorted Lists(easy) 目录 LeetCode刷题记录15--21. Merge Two Sorted Lists(easy) ...

  2. LeetCode刷题记录14——257. Binary Tree Paths(easy)

    LeetCode刷题记录14--257. Binary Tree Paths(easy) 目录 前言 题目 语言 思路 源码 后记 前言 数据结构感觉理论简单,实践起来很困难. 题目 给定一个二叉树, ...

  3. LeetCode刷题记录13——705. Design HashSet(easy)

    LeetCode刷题记录13--705. Design HashSet(easy) 目录 LeetCode刷题记录13--705. Design HashSet(easy) 前言 题目 语言 思路 源 ...

  4. LeetCode刷题记录12——232. Implement Queue using Stacks(easy)

    LeetCode刷题记录12--232. Implement Queue using Stacks(easy) 目录 LeetCode刷题记录12--232. Implement Queue usin ...

  5. LeetCode刷题记录11——290. Word Pattern(easy)

    LeetCode刷题记录11--290. Word Pattern(easy) 目录 LeetCode刷题记录11--290. Word Pattern(easy) 题目 语言 思路 源码 后记 题目 ...

  6. LeetCode刷题记录10——434. Number of Segments in a String(easy)

    LeetCode刷题记录10--434. Number of Segments in a String(easy) 目录 LeetCode刷题记录9--434. Number of Segments ...

  7. LeetCode刷题记录9——58. Length of Last Word(easy)

    LeetCode刷题记录9--58. Length of Last Word(easy) 目录 LeetCode刷题记录9--58. Length of Last Word(easy) 题目 语言 思 ...

  8. LeetCode刷题记录8——605. Can Place Flowers(easy)

    LeetCode刷题记录8--605. Can Place Flowers(easy) 目录 LeetCode刷题记录8--605. Can Place Flowers(easy) 题目 语言 思路 ...

  9. LeetCode刷题记录7——824. Goat Latin(easy)

    LeetCode刷题记录7--824. Goat Latin(easy) 目录 LeetCode刷题记录7--824. Goat Latin(easy) 题目 语言 思路 后记 题目 题目需要将一个输 ...

  10. LeetCode刷题记录6——696. Count Binary Substrings(easy)

    LeetCode刷题记录6--696. Count Binary Substrings(easy) 目录 LeetCode刷题记录6--696. Count Binary Substrings(eas ...

最新文章

  1. 《Cucumber:行为驱动开发指南》——2.3 创建步骤定义
  2. 2张图简单分析count(0)与count(*)
  3. 墙面也能变镜子,只看影子就能还原视频,MIT新算法让摄像头无死角
  4. Python3的unittest用例按编写顺序执行
  5. 由SecureCRT引发的思考和学习
  6. Android之 FLAG_ACTIVITY_CLEAR_TASK
  7. 面对小点点谷歌广告表示很无奈
  8. 利用存储过程录入连续的素数序列
  9. stcc52单片机时钟电路_单片机与晶振到底有什么关系?
  10. macOS Big Sur 11.5 (20G71) 虚拟机 ISO 镜像
  11. 详解4种类型的爬虫技术
  12. saveas中参数gcf的理解
  13. 网络小说写作套路_关于网络写作的6个常见问题,已回答
  14. win10 高DPI 高分屏 解决模糊问题的方法
  15. 三极管与恒流源充放电电路
  16. 神经网络解决推荐系统问题(可解释性与TEM)
  17. python数字水印嵌入与提取_基于LSB的图像数字水印实验
  18. 电子墨水屏(电子纸)科普篇
  19. centos7 xfs分区重调整
  20. C++核心编程笔记——内存分区模型(出自b站黑马程序员视频)

热门文章

  1. 如何在Unity中实现震动反馈效果
  2. spring boot 2-文件配置、YAML语法、文件处理器、文件占位符、profile
  3. ROS 机器人操作系统:Ubuntu 安装 ROS Noetic
  4. 深度学习-softmax回归
  5. w311m linux驱动下载,腾达(Tenda)W311M V3.0网卡驱动(LINUX)
  6. CPU重要还是GPU重要?看了你就知道了
  7. html ios风格日历,仿IOS移动端日历
  8. MacOS 日历和群晖日历同步问题解决
  9. ViewPager系列之-仿掌上英雄联盟皮肤浏览效果
  10. 安装PS2020出现错误码146