Skip to content

Instantly share code, notes, and snippets.

🌸
Cutie Mighty Flower

Yume Maruyama kirainmoe

🌸
Cutie Mighty Flower
Block or report user

Report or block kirainmoe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View longest_substring_without_repeating_characters.cpp
class Solution {
public:
inline int lengthOfLongestSubstring(string s) {
const int maxs = 96;
int pos[maxs];
int ans = 0;
int cur = 0;
int tmp;
int length = s.length();
View two_sum.cpp
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
vector<int> res;
map<int, int> numMap;
int size = nums.size();
if (size < 2) {
return res;
}
You can’t perform that action at this time.