摘要:
package LeetCode_817 /** * 817. Linked List Components * https://leetcode.com/problems/linked-list-components/ * You are given the head of a linked li 阅读全文
摘要:
package Leetcode_690 import java.util.* import kotlin.collections.HashMap /** * 690. Employee Importance * https://leetcode.com/problems/employee-impo 阅读全文
摘要:
什么是Soundex算法? Soundex是一种语音算法,利用英文字的读音计算近似值,值由4个字符构成,第一个字符为英文字母,后三个为数字。在拼音文字中有时会有会念但不能拼出正确字的情形,可用Soundex做类似模糊匹配的功能。 例如Kunth和Kant二个字符串,它们的Soundex值都是“K53 阅读全文
摘要:
/** * 575. Distribute Candies * https://leetcode.com/problems/distribute-candies/description/ * Alice has n candies, where the ith candy is of type ca 阅读全文
摘要:
/** * 552. Student Attendance Record II * https://leetcode.com/problems/student-attendance-record-ii/ * An attendance record for a student can be repr 阅读全文
摘要:
/** * 551. Student Attendance Record I * You are given a string s representing an attendance record for a student where each character signifies wheth 阅读全文
摘要:
常量指针: const在*之前 指针的地址是可以被再次赋值的(可以修改的) 指针地址上面的值(变量)是不能被修改的 常量指针的常量是不能被改变的 指针常量: const在*之后 指针的地址是不可以被再次赋值的(不可以修改的) 指针地址上面的值(变量)是能被修改的 指针常量的指针地址是不能被改变的 i 阅读全文
摘要:
#include <iostream> using namespace std; class Shape { protected: int width; int height; string name; public: // pure virtial function for interface v 阅读全文
摘要:
virtual在类中使用 如在多继承中(环状继承): class D{......}; class B: public D{......}; class A: public D{......}; class C: public B, public A{.....}; 这个继承会使D创建两个对象,要解 阅读全文