上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页
摘要: 在项目 *.pro中添加即可。 阅读全文
posted @ 2019-05-18 20:23 yocichen 阅读(1275) 评论(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 阅读(164) 评论(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 阅读(222) 评论(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 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 图象腐蚀与形态学操作 opencv 1. 通过调用库函数实现图像的腐蚀、膨胀; 2. 通过设置结构元素、元素大小、形态学操作类型实现对图象的形态学操作。 源码(VS2017+OpenCV 4.0) 效果图 1. 图像腐蚀、膨胀 2. 形态学操作 其他组合操作,自己去探索吧,挺有趣的! 更多openc 阅读全文
posted @ 2019-05-15 16:45 yocichen 阅读(457) 评论(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 阅读(663) 评论(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 阅读(123) 评论(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 阅读(172) 评论(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 阅读(157) 评论(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 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 手工实现灰度及RGB直方图 !库 1. 灰度图像直方图 算法 1. 图片灰度化; 2. 遍历Mat,统计各灰度级的像素个数; 3. 根据opencv画点线函数,绘制坐标轴及像素分布图 源码(编译环境:VS2017+OpenCV) 补充:三通道直方图(即RGB彩色图象直方图在后面) 效果图 直方图hi 阅读全文
posted @ 2019-05-11 19:47 yocichen 阅读(4247) 评论(0) 推荐(2) 编辑
摘要: OpenCV实现图象翻转、滤波、锐化 注:以下代码,使用opencv库函数实现了对图片的翻转、灰度图转换、各种滤波、各种锐化。 库函数相关参数及说明参阅:OpenCV中文站=》opencv教程(cn) 阅读全文
posted @ 2019-05-10 15:27 yocichen 阅读(846) 评论(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 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 题面 用一个栈实现另外一个栈的顶到底降序排序 要求:不能使用额外的数据结构,但可以使用新的变量。 思路(给定栈s, 辅助栈help) 1. 遍历给定栈(出栈),栈顶出栈cur,与help栈顶比较,如果大于辅助栈顶元素值,那么辅助栈栈顶元素出栈至s栈,直到help栈顶元素值<=cur 2. help压 阅读全文
posted @ 2019-05-09 17:51 yocichen 阅读(819) 评论(0) 推荐(0) 编辑
摘要: 11. Container With Most Water 题面 Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines 阅读全文
posted @ 2019-05-09 11:14 yocichen 阅读(284) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页