摘要:
顺序查找 基本思想:从数组的首元素开始,将元素逐个与待查找的关键字进行比较,直到找到相等的为止。若整个数组中没有与待查找元素相等的元素,则查找不成功。时间复杂度 $ O(n)$。 int seqSearch(int a[], int n, int key) { for(int i = 0; i 阅读全文
摘要:
you can find it on YouTube: "Learning English with EnglishClass101.com" 10 Habits of highly Effective Learners 1. Set small, measurable goals with dea 阅读全文
摘要:
Description Every email consists of a local name and a domain name, separated by the @ sign. For example, in alice@leetcode.com, alice is the local na 阅读全文
摘要:
Description Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase. Example 1: Input: "Hello" Outp 阅读全文