上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 35 下一页

2017年12月13日

c++-顺时针打印矩阵

摘要: 对于一个矩阵,请设计一个算法从左上角(mat[0][0])开始,顺时针打印矩阵元素。给定int矩阵mat,以及它的维数nxm,请返回一个数组,数组中的元素为矩阵元素的顺时针输出。测试样例:[[1,2],[3,4]],2,2返回:[1,2,4,3]题意如下图所示:顺时针... 阅读全文

posted @ 2017-12-13 17:00 sichenzhao 阅读(424) 评论(0) 推荐(0) 编辑

c++-之字形打印矩阵

摘要: 题目描述对于一个矩阵,请设计一个算法,将元素按“之”字形打印。具体见样例。给定一个整数矩阵mat,以及他的维数nxm,请返回一个数组,其中元素依次为打印的数字。测试样例:[[1,2,3],[4,5,6],[7,8,9],[10,11,12]],4,3返回:[1,2,3... 阅读全文

posted @ 2017-12-13 11:05 sichenzhao 阅读(247) 评论(0) 推荐(0) 编辑

2017年11月20日

RIOT-Nucleo-144 系列板的运行

摘要: 对于RIOT在Nucleo-144板上的运行,需要用到几个工具openocd: 调试烧写工具,非常重要gnu arm toolchain:arm-x86交叉编译链,用于在pc上交叉编译RIOT,生成arm可执行的二进制文件:1.openocd安装:见博文:http:/... 阅读全文

posted @ 2017-11-20 16:39 sichenzhao 阅读(286) 评论(0) 推荐(0) 编辑

git fork后如何更新

摘要: git fork后如何保持与源项目的更新:首先保证本地仓库的upstream是源项目的URL,若没有则添加:git remote add upstream URL然后利用fetch和merge合并upstream的master分支:git fetch upstream... 阅读全文

posted @ 2017-11-20 11:08 sichenzhao 阅读(612) 评论(0) 推荐(0) 编辑

2017年11月14日

openOCD在ubuntu16.04上的安装

摘要: OPENOCD适用于微处理器的debug和烧写。1.下载相关库:sudo apt-get install build-essential pkg-config autoconf automake libtool libusb-dev libusb-1.0-0-dev ... 阅读全文

posted @ 2017-11-14 20:41 sichenzhao 阅读(698) 评论(0) 推荐(0) 编辑

2017年11月12日

RIOT硬件平台调研

摘要: 在上篇博客中,RIOT能够支持多种物联网平台,本篇文章对支持的物联网平台进行调研:1. Arduino Due外观:参数:MCU: SAM3X8EFamily: ARM Cortex-M3RAM: 96kb(64+32)Flash: 512kb Frequency: ... 阅读全文

posted @ 2017-11-12 17:59 sichenzhao 阅读(210) 评论(0) 推荐(0) 编辑

2017年11月8日

udp socket通信

摘要: server端: #include #include #include #include #include #include #include #include #i... 阅读全文

posted @ 2017-11-08 17:06 sichenzhao 阅读(179) 评论(0) 推荐(0) 编辑

2017年11月2日

RIOT简介

摘要: RIOT物联网专用系统支持的架构和开发板如下:支持的网络架构如下:可以看到是支持CCN-lite的。 阅读全文

posted @ 2017-11-02 12:47 sichenzhao 阅读(202) 评论(0) 推荐(0) 编辑

2017年11月1日

LeetCode c语言-Rotate Image

摘要: Title:You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Note:You have to rotate the im... 阅读全文

posted @ 2017-11-01 13:28 sichenzhao 阅读(257) 评论(0) 推荐(0) 编辑

2017年10月31日

Leetcode c语言- Permutations II

摘要: Title:Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2] have th... 阅读全文

posted @ 2017-10-31 14:42 sichenzhao 阅读(433) 评论(0) 推荐(0) 编辑

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 35 下一页

导航