上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页
摘要: 题面 原题挺长的,还是英文,就不抄了,😄。 给定字符串,可能由若干个空格开头,之后可能会跟一串数组,数字可能由-/+开头,之后会跟有若干其他字母,找出并计算该数字并返回。 Note: 超出INT_MAX 和 INT_MIN 返回它俩。(所以考虑用更大类型来暂存中间结果。) 样例 Example 1 阅读全文
posted @ 2019-05-20 23:07 yocichen 阅读(203) 评论(0) 推荐(0)
摘要: 题面 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 18:04 yocichen 阅读(230) 评论(0) 推荐(0)
摘要: 题面 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 阅读(231) 评论(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 阅读(1375) 评论(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 阅读(235) 评论(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 阅读(220) 评论(0) 推荐(0)
摘要: 图象腐蚀与形态学操作 opencv 1. 通过调用库函数实现图像的腐蚀、膨胀; 2. 通过设置结构元素、元素大小、形态学操作类型实现对图象的形态学操作。 源码(VS2017+OpenCV 4.0) 效果图 1. 图像腐蚀、膨胀 2. 形态学操作 其他组合操作,自己去探索吧,挺有趣的! 更多openc 阅读全文
posted @ 2019-05-15 16:45 yocichen 阅读(475) 评论(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 阅读(689) 评论(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 阅读(131) 评论(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 阅读(179) 评论(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 阅读(170) 评论(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 阅读(239) 评论(0) 推荐(0)
摘要: 手工实现灰度及RGB直方图 !库 1. 灰度图像直方图 算法 1. 图片灰度化; 2. 遍历Mat,统计各灰度级的像素个数; 3. 根据opencv画点线函数,绘制坐标轴及像素分布图 源码(编译环境:VS2017+OpenCV) 补充:三通道直方图(即RGB彩色图象直方图在后面) 效果图 直方图hi 阅读全文
posted @ 2019-05-11 19:47 yocichen 阅读(4338) 评论(0) 推荐(2)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页