使用javascript的stack數據結構,實現進制轉換

function Stack() { var items = []; this.push = function(element){ items.push(element); } this.pop = function(){ return items.pop(); } this.peek = function()
相關文章
相關標籤/搜索