摘要:
整理摘自https://blog.csdn.net/ithomer/article/details/6031329 1. 申明格式 在普通的虚函数后面加上"=0"这样就声明了一个pure virtual function. 2. 何时使用纯虚函数? (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 阅读全文
摘要:
整理摘自 https://zhidao.baidu.com/question/1387744870700677180.html %matplotlib inline是jupyter notebook里的命令, 意思是将那些用matplotlib绘制的图显示在页面里而不是弹出一个窗口。 matplot 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
Description Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", wh 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文