qiuzhong

null

一道简单的算法题

As iron sharpens iron, so a friend sharpens a friend. 在一个二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。 public cla..


Android App运行时发生OOM的原因你知道哪几种?如何避免?

Nothing behind me, everything ahead of me, as is ever so on the road. 以下内容来源于网络1.资源对象用完没有关闭,造成内存泄漏。避免:对于资源性对象,在try catch finally中将资源对象放在finally中进行回收..


cocos2d-x 截屏相关的内容

No matter what happens, even if the stars fall, I will live. 最近刚做完微信分享的接入,其中需要截屏并分享的功能cocos2d 愉快的告诉我,朋友别造轮子啦,我们给你做好啦local fileName ="test.png&q..


Unity3D 学习手札

MonoBehaviour的生命周期官方文档:https://docs.unity3d.com/uploads/Main/monobehaviour_flowchart.svg


leetcode 561. Array Partition I

Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), …, (an, bn) which makes sum of ..


leetcode 338. Counting Bits

Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1’s in their binary representation and..


leetcode 419.Battleships in a Board

题目:Given an 2D board, count how many battleships are in it. The battleships are represented with ‘X’s, empty slots are represented with ‘.’s. You ma..


Hamming Distance 练习题

题目:The Hamming distance between two integers is the number of positions at which the corresponding bits are different.Given two integers x and y, ca..