摘要: Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical an 阅读全文
posted @ 2017-04-18 21:23 yxysuanfa 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Idiomatic Phrases Game Time Limit: 2 Seconds Memory Limit: 65536 KB Tom is playing a game called Idiomatic Phrases Game. An idiom consists of several 阅读全文
posted @ 2017-04-18 19:47 yxysuanfa 阅读(168) 评论(0) 推荐(0) 编辑
摘要: //已经排好的数组,输入一个数,按原来的规律插入数组中; #include<iostream> using namespace std; int main() { int a[100]; int i,k,t; for(i=0;i<99;++i)/* 赋值*/ a[i]=(i+1)*2; for(i= 阅读全文
posted @ 2017-04-18 18:36 yxysuanfa 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 题目大意:有一些骑士。他们每个人都有一个权值。可是因为一些问题,每个骑士都特别讨厌还有一个骑士。所以不能把他们安排在一起。求这些骑士所组成的编队的最大权值和是多少。 思路:首先貌似是有向图的样子,可是一个人讨厌还有一个人。他们两个就不能在一起。所以边能够看成是无向的。 n个点,n条无向边,好像是一颗 阅读全文
posted @ 2017-04-18 17:36 yxysuanfa 阅读(138) 评论(0) 推荐(0) 编辑
摘要:  Unity3D引擎技术交流QQ群:【21568554】 做3d移动端内存一直是人们头疼的问题,载入的资源释放了,还有其它的须要释放,比方ngui释放。事实上主要是NGUI的Texture和Sprite释放。假设你脚本程序没用到NGUI组建的引用的话,切换场景后第一时间调用 Resources. 阅读全文
posted @ 2017-04-18 16:41 yxysuanfa 阅读(347) 评论(0) 推荐(0) 编辑
摘要: <欢迎大家增加iOS开发学习交流群:QQ529560119> iOS 9: UIStackView入门 同iOS以往每一个迭代一样。iOS 9带来了非常多新特性。UIKit框架每一个版本号都在改变,而在iOS 9比較特别的是UIStackView,它将从根本上改变开发人员在iOS上创建用户界面的方式 阅读全文
posted @ 2017-04-18 15:47 yxysuanfa 阅读(195) 评论(0) 推荐(0) 编辑