上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页
摘要: 题面 A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at an 阅读全文
posted @ 2019-05-19 16:06 yocichen 阅读(230) 评论(0) 推荐(0)
摘要: 题面 Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its pat 阅读全文
posted @ 2019-05-19 00:00 yocichen 阅读(207) 评论(0) 推荐(0)
摘要: 在项目 *.pro中添加即可。 阅读全文
posted @ 2019-05-18 20:23 yocichen 阅读(1374) 评论(0) 推荐(0)
摘要: 题面 给定x, n, 求pow(x, n)。 样例 Example 1: Example 2: Example 3: Note: -100.0 < x < 100.0 n is a 32-bit signed integer, within the range [−231, 231 − 1] 要小心 阅读全文
posted @ 2019-05-17 10:27 yocichen 阅读(173) 评论(0) 推荐(0)
摘要: 题面 Given a linked list, swap every two adjacent nodes and return its head. You may not modify the values in the list's nodes, only nodes itself may be 阅读全文
posted @ 2019-05-16 21:42 yocichen 阅读(233) 评论(0) 推荐(0)
摘要: 题面 Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses 给定int n,代表n组括号,编码生成所有有效的括号组合(即符合括号嵌套规则) 样例 g 阅读全文
posted @ 2019-05-16 11:58 yocichen 阅读(218) 评论(0) 推荐(0)
摘要: 图象腐蚀与形态学操作 opencv 1. 通过调用库函数实现图像的腐蚀、膨胀; 2. 通过设置结构元素、元素大小、形态学操作类型实现对图象的形态学操作。 源码(VS2017+OpenCV 4.0) 效果图 1. 图像腐蚀、膨胀 2. 形态学操作 其他组合操作,自己去探索吧,挺有趣的! 更多openc 阅读全文
posted @ 2019-05-15 16:45 yocichen 阅读(473) 评论(2) 推荐(0)
摘要: OpenCV 使用 createtrackerbar()报错问题 Error Error: Assertion failed (size.width>0 && size.height>0) in cv::imshow, file c:\build\master_winpack-build-win64 阅读全文
posted @ 2019-05-15 15:22 yocichen 阅读(687) 评论(0) 推荐(0)
摘要: 题面 Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the 阅读全文
posted @ 2019-05-14 16:06 yocichen 阅读(130) 评论(0) 推荐(0)
摘要: 题面 Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. A mapping of digit to 阅读全文
posted @ 2019-05-14 15:13 yocichen 阅读(178) 评论(0) 推荐(0)
摘要: 题面 Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b+ c + d = target? Find all unique 阅读全文
posted @ 2019-05-13 21:52 yocichen 阅读(169) 评论(0) 推荐(0)
摘要: 题面 Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives th 阅读全文
posted @ 2019-05-13 21:32 yocichen 阅读(237) 评论(0) 推荐(0)
摘要: 手工实现灰度及RGB直方图 !库 1. 灰度图像直方图 算法 1. 图片灰度化; 2. 遍历Mat,统计各灰度级的像素个数; 3. 根据opencv画点线函数,绘制坐标轴及像素分布图 源码(编译环境:VS2017+OpenCV) 补充:三通道直方图(即RGB彩色图象直方图在后面) 效果图 直方图hi 阅读全文
posted @ 2019-05-11 19:47 yocichen 阅读(4336) 评论(0) 推荐(2)
摘要: OpenCV实现图象翻转、滤波、锐化 注:以下代码,使用opencv库函数实现了对图片的翻转、灰度图转换、各种滤波、各种锐化。 库函数相关参数及说明参阅:OpenCV中文站=》opencv教程(cn) 阅读全文
posted @ 2019-05-10 15:27 yocichen 阅读(873) 评论(0) 推荐(0)
摘要: 6. ZigZag Conversion 题面 The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this 阅读全文
posted @ 2019-05-09 22:25 yocichen 阅读(144) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页