05 2021 档案

摘要:整数数组 nums 按升序排列,数组中的值 互不相同 。 在传递给函数之前,nums 在预先未知的某个下标 k(0 <= k < nums.length)上进行了 旋转,使数组变为 [nums[k], nums[k+1], ..., nums[n-1], nums[0], nums[1], ..., 阅读全文
posted @ 2021-05-31 21:49 γGama 阅读(57) 评论(0) 推荐(0)
摘要:数字 n 代表生成括号的对数,请你设计一个函数,用于能够生成所有可能的并且 有效的 括号组合。 示例 1: 输入:n = 3输出:["((()))","(()())","(())()","()(())","()()()"]示例 2: 输入:n = 1输出:["()"] class Solution 阅读全文
posted @ 2021-05-23 15:38 γGama 阅读(54) 评论(0) 推荐(0)
摘要:完整报错 Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Ma 阅读全文
posted @ 2021-05-19 17:16 γGama 阅读(5017) 评论(0) 推荐(0)
摘要:NSAlert *alert = [[NSAlert alloc] init]; alert.messageText = @"主标题"; alert.informativeText = content;//内容 [alert addButtonWithTitle:@"确定"];//按钮所显示的文案 阅读全文
posted @ 2021-05-19 17:12 γGama 阅读(543) 评论(0) 推荐(0)
摘要:起因 本人在开发一个Mac应用程序时需要使用到SSZipArchive进行解压文件的操作,本来应该是十分简单的,只需要集成一下SSZipArchive库,给出源路径与目标路径传入指定方法即可。 问题 我根据网上教程,使用[SSZipArchive unzipFileAtPath:src toDest 阅读全文
posted @ 2021-05-19 17:07 γGama 阅读(883) 评论(0) 推荐(0)
摘要:本帖作为记录,具体解析在此:https://www.jianshu.com/p/949d8de2cb91 阅读全文
posted @ 2021-05-19 16:47 γGama 阅读(105) 评论(0) 推荐(0)
摘要:请根据每日 气温 列表,重新生成一个列表。对应位置的输出为:要想观测到更高的气温,至少需要等待的天数。如果气温在这之后都不会升高,请在该位置用 0 来代替。 例如,给定一个列表 temperatures = [73, 74, 75, 71, 69, 72, 76, 73],你的输出应该是 [1, 1 阅读全文
posted @ 2021-05-19 16:16 γGama 阅读(45) 评论(0) 推荐(0)
摘要:一、system语句 原型:system(const char *); 用法: NSString* str = @"存放你要在终端执行的命令"; const char* cmd = [str UTF8String]; system(cmd); //这里注意,如果你要执行多条命令,分开使用system 阅读全文
posted @ 2021-05-04 15:05 γGama 阅读(886) 评论(0) 推荐(0)