摘要:
/** * 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 阅读全文
摘要:
#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创建两个对象,要解 阅读全文
摘要:
GetMethodID中sig参数是对函数的签名,也可以说标识,具体的格式为:(函数参数)返回值。 方法签名中用大写的字母对应了java的基本数据类型: Z -> boolean B -> byte C -> char S -> short I -> int J -> long F -> float 阅读全文
摘要:
题目在这里 pub fn prefix_matches(prefix: &str, request_path: &str) -> bool { //split by slash and change element into Option and add None at the end. let m 阅读全文