打赏
上一页 1 ··· 6 7 8 9 10
摘要: 整理摘自https://blog.csdn.net/ithomer/article/details/6031329 1. 申明格式 在普通的虚函数后面加上"=0"这样就声明了一个pure virtual function. 2. 何时使用纯虚函数? (1)当想在基类中抽象出一个方法,且该基类只做能被 阅读全文
posted @ 2018-10-09 10:01 listenviolet 阅读(16650) 评论(0) 推荐(1) 编辑
摘要: 部分内容摘自:https://blog.csdn.net/ranhui_xia/article/details/32696669 The version with const char * will copy data from a read-only location to a variable 阅读全文
posted @ 2018-10-08 21:39 listenviolet 阅读(1457) 评论(0) 推荐(0) 编辑
摘要: 整理摘自 https://zhidao.baidu.com/question/1387744870700677180.html %matplotlib inline是jupyter notebook里的命令, 意思是将那些用matplotlib绘制的图显示在页面里而不是弹出一个窗口。 matplot 阅读全文
posted @ 2018-10-07 16:45 listenviolet 阅读(1689) 评论(0) 推荐(0) 编辑
摘要: 54. Spiral Matrix [Medium] Description Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. Exampl 阅读全文
posted @ 2018-09-23 22:39 listenviolet 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 55. Jump Game Description Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the a 阅读全文
posted @ 2018-09-21 16:13 listenviolet 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 35. Search Insert Position Description Given a sorted array and a target value, return the index if the target is found. If not, return the index wher 阅读全文
posted @ 2018-09-18 19:49 listenviolet 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Description Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", wh 阅读全文
posted @ 2018-08-16 09:50 listenviolet 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Description You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their 阅读全文
posted @ 2018-08-06 10:27 listenviolet 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Description Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input w 阅读全文
posted @ 2018-08-05 09:36 listenviolet 阅读(109) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10