博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Leetcode 367. Valid Perfect Square
阅读量:4562 次
发布时间:2019-06-08

本文共 276 字,大约阅读时间需要 1 分钟。

class Solution(object):    def isPerfectSquare(self, num):        """        :type num: int        :rtype: bool        """        for x in range(1000000):            if x*x==num:                return True        return False

 

转载于:https://www.cnblogs.com/zywscq/p/10556326.html

你可能感兴趣的文章
[网络流24题] 试题库问题
查看>>
面试分享:应届前端面试经历
查看>>
Essentially No Barriers in Neural Network Energy Landscape
查看>>
A pure L1-norm principal component analysis
查看>>
SVM
查看>>
Dimension reduction in principal component analysis for trees
查看>>
Deep Linear Networks with Arbitrary Loss: All Local Minima Are Global
查看>>
golang开发:类库篇(五)go测试工具goconvey的使用
查看>>
浅谈限流(下)实战
查看>>
jpa(Java Persistence API)
查看>>
spring之雜談
查看>>
vue修改启动的端口和host
查看>>
【Django】Mac 安装pip3-install-mysqlclient 报错
查看>>
vue引入elementUI(第三方样式库)
查看>>
django的增删改查
查看>>
虚拟内存
查看>>
存储器层次结构
查看>>
查询处理
查看>>
python学习笔记
查看>>
异常控制流
查看>>