- 博客(27)
- 资源 (2)
- 收藏
- 关注
原创 458. Poor Pigs
458. Poor PigsThere are 1000 buckets, one and only one of them containspoison, the rest are filled with water. They all look the same. If a pig drinksthat poison it will die within 15 minutes. What
2017-04-06 22:27:13
353
原创 540. Single Element in a Sorted Array
540. Single Element in a Sorted ArrayGiven a sortedarray consisting of only integers where every element appears twice except forone element which appears once. Find this single element that appears
2017-04-05 21:45:19
484
原创 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?设两个指向输入链表的指针,walker和runner,制造一个while函数,一次循环walker指向下一个链表,runner指向下下个链表,如果输入链表是一个环,
2017-03-30 21:36:42
284
原创 86. Partition List
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should preserve the original relative order of the nodes in each of
2017-03-30 21:11:24
233
原创 152. Maximum Product Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array [2,3,-2,4],the contiguous subarray [2,3] has the largest
2017-03-27 23:17:49
238
原创 53. Maximum Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [-2,1,-3,4,-1,2,1,-5,4],the contiguous subarray [4,-1,2,1] ha
2017-03-27 21:57:46
189
原创 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 they are structurally identical and the nodes have the same value.Subscr
2017-03-26 20:55:31
288
原创 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], 1 \ 2 / 3return [1,3,2]./** * Definit
2017-03-23 13:08:35
207
原创 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() -- Removes the element from in front of queue.peek() -- Get the front element.empty(
2017-03-21 12:45:15
298
原创 225. Implement Stack using Queues
Implement the following operations of a stack using queues.push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top() -- Get the top element.empty() -- Return whet
2017-03-21 12:43:30
244
原创 19. Remove Nth Node From End of List
Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the
2017-03-20 16:32:09
192
原创 21. Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists./** * Definition for singly-linked list. * struct Lis
2017-03-20 16:28:57
199
原创 查看Linux安装了那些软件
查看Linux安装了那些软件:horatio@horatio-OptiPlex-3010:~$ dpkg -l |grep -i "google*"rc account-plugin-google 0.11+14.04.20140409.1-0ubuntu1 all
2016-12-13 16:25:51
628
原创 231. Power of Two
Given an integer, write a function to determine if it is a power of two.class Solution {public: bool isPowerOfTwo(int n) { return (n>0)&&!(n&(n-1)); }};首先需要n大于0,然后n和n-1进行与处理,
2016-12-11 21:38:46
241
原创 openLTE中的RRC层
RRC层的输入输出的结构是LTE_fdd_enb_msgq。LTE_fdd_enb_msgq 结构里面的private包含一个criculat_buffer,circuar_buffer里面有100个LTE_FDD_ENB_MESSAGE_STRUCT,LTE_FDD_ENB_MESSAGE_STRUCT中又包含有dest_layer,type,msg(携带的信息,类型是LTE_FDD_ENB
2016-12-06 14:52:25
1453
转载 VS运行时一闪而过的问题
在VS2010里的控制台应用程序在运行时,结果画面一闪而过,不管是用F5 还是用Ctrl + F5都是一样,导致无法看到结果。 网上有不少的办法,说是都是在程序最后加一个要程序暂停的语句或从控制台上获取用户输入的语句。其实还有一个更好的解决办法: 在你的项目条目(project)上右击鼠标,在弹出菜单上选择最后一项“property/属性”,在左边的一栏里找到“配置属性-
2016-12-05 20:36:28
614
原创 机器学习实战ch04
>>> import bayes>>> listOPosts,listClasses=bayes.loadDataSet()>>> listOPosts[['my', 'dog', 'has', 'flea', 'problems', 'help', 'please'], ['maybe', 'not', 'take', 'him', 'to', 'dog', 'park', 'stupid
2016-12-02 11:55:07
889
1
原创 Linux基本操作
查询Linux内核:horatio@horatio-OptiPlex-3010:~/openairinterface5g/cmake_targets$ cat /proc/versionLinux version 3.13.0-24-generic (buildd@panlong) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #46-Ubunt
2016-11-30 21:28:39
362
原创 寻呼
当UE接入核心网后,PDN-GW会给UE分配IP地址,如果UE长期没有任务,进入了IDEL的转态,连接UE和eNB的无线承载和连接eNB和SGW的S1被释放,PDN-GW依然会保存这个UE的IP,而且连接PDN-GW和SGW的S5/S8承载也会被保存。0:当UE处于IDLE状态时,有IP包到达PDN-GW。1:PDN-GW将IP包通过S5/S8发送给SGW。2:SGW发现它与UE连接的
2016-11-26 16:16:35
904
原创 切换
切换0:source eNB给UE设定测量上报的条件:。1:根据source eNB设定的条件,UE触发测量上报。2:source eNB根据测量上报来做出HO decision,然后source eNB向target eNB发送handover request。3:如果target eNB接受请求,就会给相应的UE配置无线资源。4:接下来发送handover request
2016-11-25 17:04:56
345
原创 开机初始接入
Attach(附着)过程完成UE在网络的注册,完成核心网(EPC)对该UE默认承载的建立;Detach(分离)过程完成UE在网络侧的注销和所有EPS承载的删除;在attach的过程中,UE会有好几个身份,eNB会给UE分配C-RNTI,MME会分配S-TMSI,PDN-GW会分配IP address。当UE开机后,它会试图去与附近信号最强的eNB建立无线连接,建立无线连接需要收听eNB
2016-11-25 15:23:20
839
原创 测量
测量有三种测量方式:1,同频测量2,不同频测量3,不同种类基站之间测量 E-UTRAN控制着UE的同频测量和不同频测量,当UE处于RRC_IDLE时,UE根据E-UTRAN广播的测量配置进行测量,如果UE有特定的优先级,可以通过E-UTRAN的专用控制来进行测量。当UE处于RRC-CONNECTED状态时,需要根据E-UTRAN的RRC层配置的专用测量参数进行测量。
2016-11-22 17:12:30
1094
原创 机器学习实战ch03
机器学习实战中的例子确实还是挺有意思的,由于以前没怎么接触过Python,然而又想把里面的细节全搞清楚,所以费了很大的力气,花费了很多时间去了解细节内容。
2016-11-20 19:47:59
287
原创 基本的递归函数
以前一开始接触递归,真的很难理解那到底是怎么运行的。但是昨天化了一晚上理解完了一段python语言中的一段递归后,顿时豁然开朗了。
2016-11-16 19:56:42
392
原创 LTE中的MME层概述
NAS是控制面板中最高的一层,NAS协议适用于UE和MME之间的通信。NAS的功能是给UE提供移动性,建立和维持UE和EPC之间的IP连接。NAS信号的连接由SRB和S1组成,UE和eNB之间由SRB连接,eNB和MME之间由S1连接。NAS层由两个子层组成,EMM和ESM,在使用ESM前必须先建立EMM连接。EMM主要负责authentication, security,attach, deta
2016-11-11 20:26:50
11649
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人