原创 Ue4反射簡析

Ue4反射簡析 UE4版本 4.18 參考:insideUE4 1. 反射介紹 在UE4裏面,你無時無刻都會看到類似UFUNCTION()這樣的宏。官方文檔告訴你,只要在一個函數的前面加上這個宏,然後在括號裏面加上Blue

原创 LeetCode·64. Minimum Path Sum

LeetCode·64. Minimum Path Sum 題目: Given a m x n grid filled with non-negative numbers, find a path from top left to b

原创 Ue4_序列化淺析

Ue4_序列化淺析 1. 序列化基本概念 序列化是指將對象轉換成字節流,從而存儲對象或將對象傳輸到內存、數據庫或文件等的過程。 它的主要用途是保存對象的狀態,以便能夠在需要時重新創建對象。 反向過程稱爲“反序列化”。 (通俗來說就

原创 Ue4_Actor 複製流程詳述

Ue4_Actor 複製流程詳述 官方文檔轉載加以理解 大多數 actor 複製操作都發生在 UNetDriver::ServerReplicateActors 內。在這裏,服務器將收集所有被認定與各個客戶端相關的 actor

原创 Muduo - Reactor模式

Muduo - Reactor模式 一、Reactor 是什麼 wiki的中文定義:Reactor模式是事件驅動的,有一個或多個併發輸入源,有一個Service Handler,有多個Request Handler,這個Serv

原创 STL_Allocator內存配置器

STL_Allocator內存配置器 STL的內存配置器考慮到了小型的區塊可能造成內存破碎問題,SGI STL 設計了雙層級配置器,第一層配置器直接使用malloc() 和 free().第二層配置器則視情況採用不同的策略:但配置

原创 LeetCode1. Two Sum

LeetCode1. Two Sum 題目: Given an array of integers, return indices of the two numbers such that they add up to a speci

原创 LeetCode26. Remove Duplicates from Sorted Array

LeetCode26. Remove Duplicates from Sorted Array 題目: Given a sorted array, remove the duplicates in-place such that

原创 LeetCode40. Combination Sum II

LeetCode40. Combination Sum II 題目: Given a collection of candidate numbers (C) and a target number (T), find all uniqu

原创 Leetcode39. Combination Sum

Leetcode39. Combination Sum 題目:Given a set of candidate numbers (C) (without duplicates) and a target number (T), f

原创 LeetCode377. Combination Sum IV

LeetCode377. Combination Sum IV 題目: Given an integer array with all positive numbers and no duplicates, find the numbe

原创 LeetCode15. 3Sum

LeetCode15. 3Sum 題目: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find a

原创 LeetCode18. 4Sum

LeetCode18. 4Sum 題目: Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d 

原创 LeetCode216. Combination Sum III

LeetCode216. Combination Sum III 題目: Find all possible combinations of k numbers that add up to a number n, given tha

原创 Leetcode712. Minimum ASCII Delete Sum for Two Strings

Leetcode712. Minimum ASCII Delete Sum for Two Strings 題目: Given two strings s1, s2, find the lowest ASCII sum of dele