Write a partition algorithm employed in qsort. Analyze time cost in bad, good, mean cases.
Given a array, find there elements that a[i]+a[j]+a[k] == target. Explain why this algorithm works.
Write a algorithm to print all the permuations of a array.
Variable-width string encoding. while the first bit equals 0, this character is a one Byte character. When the first bit equals 1, this character is a two Byte character. Given a legal position, find its previous legal character.
how to find median in mass data.
some points are scattered, find a line to seperate them and keeps point counts in each plane equals.
[3, 4, 5, 6, 7, 4, 3, 2], find median of such array.
median of two sorted array.
design a lottery system
Some onsite algorithm questions
最后編輯于 :
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。