
什麼是二分法, 二分法的三個種類的邊間條件該如何設定

Binary Search Tree

AVL Tree 解決什麼問題, AVL Tree 的結構與 interface

Dijkstra's Algorithm

Algorithm - 排序演算法 Insertion Sort, Selection Sort, Bubble Sort, Merge Sort, Quick Sort, Heap Sort

Redis 將數據存在記憶體中,透過讀寫記憶體得到較高的併發性能。但若 Redis 意外關閉、重啟的話,數據將會丟失。 因此 Redis 提供兩種資料池久化的機制( RDB 和 AOF )

做 cache 的主要目的是提高資料存取的速度和效率。當程式需要頻繁地存取某些資料時,從記憶體或快取中獲取資料比從磁碟或遠端伺服器中取得資料要快得多。這樣可以減少對資源的重複訪問,提高系統的回應速度,並且減輕了伺服器或資料庫的負載。

Redis 是一個開源、基於記憶體的資料庫,Redis 最初被開發為一個用於緩存的工具,但隨著時間的推移,它已經演變成一個多用途的數據庫,用於處理各種不同的用例,包括緩存、會話存儲、消息佇列、實時分析等。

從 Rails 6.1 升級到 7.1, ruby 2.7.8 升級到 3.3.4

什麼是 MVC 架構? 為什麼會有 Fat Model, Fat Concern, Fat Controller 的狀況出現, 又會如何解決相關問題呢?

什麼是 frozen_string_literal?

Ruby 中的 Symbol 和 String 有什麼不同?什麼時候應該用 Symbol?

Given an array of integers nums sorted in non-decreasing order, find the starting and ending position of a given target value.If target is not found in the array, return [-1, -1].You must write an algorithm with O(log n) runtime complexity.

You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, height[i]). Find two lines that together with the x-axis form a container, such that the container contains the most water.

Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0. Notice that the solution set must not contain duplicate triple