1. unity导出xcode工程有两种模式,一种为模拟器运行的工程,一种为真机运行的工程,这里遇到的错误,都是导出模拟器运行工程时报的错误。 错误1: unity UnityMetalSupport Duplicate interface definition for class 'CAMetal ...
                            
                            
                                分类:
编程语言   时间:
2020-06-03 15:41:14   
                                阅读次数:
189
                             
                    
                        
                            
                            
                                解决:Method definition shorthands are not supported
                            
                            
                                分类:
其他好文   时间:
2020-06-03 10:48:15   
                                阅读次数:
60
                             
                    
                        
                            
                            
                                将两个升序链表合并为一个新的升序链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。 示例: 输入:1->2->4, 1->3->4 输出:1->1->2->3->4->4 解题思路: /** * Definition for singly-linked list. * struct Lis ...
                            
                            
                                分类:
其他好文   时间:
2020-05-31 13:23:10   
                                阅读次数:
68
                             
                    
                        
                            
                            
                                给定一个链表,删除链表的倒数第 n 个节点,并且返回链表的头结点。 示例: 给定一个链表: 1->2->3->4->5, 和 n = 2. 当删除了倒数第二个节点后,链表变为 1->2->3->5. 说明: 给定的 n 保证是有效的。 /** * Definition for singly-link ...
                            
                            
                                分类:
其他好文   时间:
2020-05-31 11:21:16   
                                阅读次数:
49
                             
                    
                        
                            
                            
                                    先来一个前序遍历把所有结点存在一个列表中,然后遍历链表,把所有结点用右指针串起来 1 /** 2 * Definition for a binary tree node. 3 * public class TreeNode { 4 * int val; 5 * TreeNode left; 6 *  ...
                            
                            
                                分类:
其他好文   时间:
2020-05-30 22:05:09   
                                阅读次数:
83
                             
                    
                        
                            
                            
                                    题目描述 leetcode - 2:https://leetcode-cn.com/problems/add-two-numbers/ 解题关键 C++ 链表 数据结构的定义和遍历 代码 /** * Definition for singly-linked list. * struct ListNo ...
                            
                            
                                分类:
其他好文   时间:
2020-05-29 09:15:52   
                                阅读次数:
73
                             
                    
                        
                            
                            
                                    问题描述: 将两个有序链表合并为一个新的有序链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。示例:输入:1->2->4, 1->3->4输出:1->1->2->3->4->4 迭代:使用双指针分别指向l1和l2,比较出较小值结点 //C /** * Definition for sing ...
                            
                            
                                分类:
其他好文   时间:
2020-05-26 22:04:05   
                                阅读次数:
57
                             
                    
                        
                            
                            
                                很简单,来个层次遍历,当遍历队列,遍历到刚开始遍历时,队列里最后一个数时(也就是遍历len-1次),得到的就是右视图的其中一个节点 /** * Definition for a binary tree node. * public class TreeNode { * int val; * Tree ...
                            
                            
                                分类:
其他好文   时间:
2020-05-25 09:46:16   
                                阅读次数:
49
                             
                    
                        
                            
                            
                                    链接:https://leetcode-cn.com/problems/add-two-numbers/ 代码: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * L ...
                            
                            
                                分类:
其他好文   时间:
2020-05-25 00:15:00   
                                阅读次数:
65
                             
                    
                        
                            
                            
                                    链接:https://leetcode-cn.com/problems/sort-list/ 代码: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNod ...
                            
                            
                                分类:
编程语言   时间:
2020-05-24 23:59:47   
                                阅读次数:
102