摘要:
在c++中class和struct用法是相同的,只有一个区别成员的默认属性,struct是public,class是private。 阅读全文
摘要:
1. question: Is Unique: Implement an algorithm to determine if a string has all unique characters. What if you cannot use additional data structures? 阅读全文
摘要:
普通快速排序其实就是递归分割,首先去一个基准数将数组以此为大小分割成两份,然后再递归对此两份数组分别再进行同样的操作。 int getIndex(int* pArry, int low, int high){ int temp = pArry[low]; while (low < high) { w 阅读全文