原创 基本的遞歸函數

  以前一開始接觸遞歸,真的很難理解那到底是怎麼運行的。但是昨天化了一晚上理解完了一段python語言中的一段遞歸後,頓時豁然開朗了。完全搞明白後,自己又寫了cpp中的pow函數和iterate函數,分別用於求某數的次方和累加和。

原创 openLTE中的MME

MME Mme_procedure有4種,LTE_FDD_ENB_MME_PROC_IDLE = 0, LTE_FDD_ENB_MME_PROC_ATTACH, LTE_FDD_ENB_MME_PRO

原创 自己常用的vim基本操作

讓vim開啓時自動顯示行號: 首先編輯主目錄中的.vimrc文件: horatio@horatio-OptiPlex-3010:~/c$ vim ~/.vimrc 打開該文件是空白的,在裏面加一行:set number。

原创 機器學習實戰ch03

3.1.1 >>>a="qwe" >>> a[-1] 'e' 列表的最後一位是-1. >>>import trees 之後在Python的console中就可以使用trees.py中的函數了。 >>> lc={} >>>lc["no"]=

原创 LTE中的MME層概述

      NAS是控制面板中最高的一層,NAS協議適用於UE和MME之間的通信。NAS的功能是給UE提供移動性,建立和維持UE和EPC之間的IP連接。NAS信號的連接由SRB和S1組成,UE和eNB之間由SRB連接,eNB和MME之間由

原创 開機初始接入

Attach(附着)過程完成UE在網絡的註冊,完成核心網(EPC)對該UE默認承載的建立; Detach(分離)過程完成UE在網絡側的註銷和所有EPS承載的刪除; 在attach的過程中,UE會有好幾個身份,eNB會給UE分配C-RNTI

原创 225. Implement Stack using Queues

Implement the following operations of a stack using queues. push(x) -- Push element x onto stack.pop() -- Removes the

原创 查看Linux安裝了那些軟件

查看Linux安裝了那些軟件: horatio@horatio-OptiPlex-3010:~$ dpkg -l |grep -i "google*" rc account-plugin-google

原创 94. Binary Tree Inorder Traversal

Given a binary tree, return the inorder traversal of its nodes' values. For example: Given binary tree [1,null,2,3],

原创 141. Linked List Cycle

Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? 設兩個指向輸

原创 152. Maximum Product Subarray

Find the contiguous subarray within an array (containing at least one number) which has the largest product. For exam

原创 100. Same Tree

Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if

原创 458. Poor Pigs

458. Poor Pigs There are 1000 buckets, one and only one of them containspoison, the rest are filled with water. They al

原创 540. Single Element in a Sorted Array

540. Single Element in a Sorted Array Given a sortedarray consisting of only integers where every element appears twice

原创 232. Implement Queue using Stacks

Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue.pop() -- Re