摘要: !!!题目链接!!! // The API isBadVersion is defined for you. // bool isBadVersion(int version); class Solution { public: int firstBadVersion(int n) { long r 阅读全文
posted @ 2022-01-05 09:59 ReaIms 阅读(27) 评论(0) 推荐(0) 编辑
摘要: !!!题目链接!!! solution: class Solution { public: int search(vector<int>& nums, int target) { int min = 0; int mid = nums.size()/2; int max = nums.size(); 阅读全文
posted @ 2022-01-05 06:43 ReaIms 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-12-19 04:56 ReaIms 阅读(46) 评论(0) 推荐(0) 编辑
摘要: Question: Longest Substring Without Repeating Characters Example 1: Input: s = "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length 阅读全文
posted @ 2021-12-13 00:44 ReaIms 阅读(28) 评论(0) 推荐(0) 编辑
摘要: Question: Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume tha 阅读全文
posted @ 2021-12-12 07:16 ReaIms 阅读(46) 评论(0) 推荐(0) 编辑
摘要: Question: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their n 阅读全文
posted @ 2021-12-12 05:58 ReaIms 阅读(100) 评论(0) 推荐(0) 编辑
摘要: #使用iFogSim进行模拟 前置条件:需有iFogSim环境,和对iFogSim的基础概念有所了解。可阅读前两篇文章。 首先需要创建特定配置的物理组件,配置的参数包括ram,处理器性能(每秒百万指令),每百万之令运行的消耗,上行和下行带宽,根据分层等级划分的忙碌和空闲功耗。 /* 创建雾设备接口 阅读全文
posted @ 2021-06-12 15:41 ReaIms 阅读(1274) 评论(0) 推荐(0) 编辑
摘要: iFogSim 简介和其组件 iFogsim模拟开发包是在CloudSim的基础上进行改进,延续CloudSim基础类的同时,iFogSim还提供了个性化的雾计算环境包含雾节点和Iot设备。ifogSim采用传感器、进程、驱动器和分布式数据流的模式来模拟在雾计算环境中的应用场景。这种模式提升了端到端 阅读全文
posted @ 2021-06-12 13:42 ReaIms 阅读(1970) 评论(0) 推荐(0) 编辑
摘要: ifogSim在IDEA上的调试与运行 新建ifogSim文件夹 初始化仓库git init 将本地仓库与远程仓库建立连接git remote add origin https://github.com/Cloudslab/iFogSim 拉取远程仓库中的内容git pull origin mast 阅读全文
posted @ 2021-06-12 11:12 ReaIms 阅读(654) 评论(0) 推荐(0) 编辑
摘要: FreeRTOS的堆管理 上文对FreeRTOs的目录结构进行了说明,其中提到了FreeRTOS\Source\portable\MemMang目录下的五个heap_n.c文件,本文将对这个五个文件的作用、差异、使用场景进行对比,以便选择出适合自己项目的堆管理模式。 FreeRTOS使用pvPort 阅读全文
posted @ 2021-05-24 23:35 ReaIms 阅读(1396) 评论(0) 推荐(0) 编辑