Problem Statement You are given a string input. You are to find the longest substring of input such that the reversal of the substring is also a substring of input. In case of a tie, return the string that occurs earliest in input. Definition Class: ReverseSubstring Method: findReversed Parameters: string Returns: string Method signature: string findReversed(string input) (be sure your method is public) Notes The substring and its reversal may overlap partially or completely. The entire original string is itself a valid substring (see example 4). Constraints input will contain between 1 and 50 characters, inclusive. Each character of input will be an uppercase letter ( A - Z ). Examples 0) "XBCDEFYWFEDCBZ" Returns: "BCDEF" We see that the reverse of BCDEF is FEDCB, which appears later in the string. 1)
上傳時間: 2015-09-21
上傳用戶:sunjet
對電磁波入射的源為偶極子進行仿真,可以z作為其他電磁仿真問題中的源的設置子函數用
上傳時間: 2015-09-22
上傳用戶:ryb
This m file analyzes a coherent binary phase shift keyed(BPSK) and a amplitude shift keyed(ASK) communication system. The receiver uses a correlator(mixer-integrator[LPF]) configuration with BER measurements comparing measured and theoretical results. The bandpass and low pass used in the receiver are constructed using z transforms.
標簽: keyed shift amplitude analyzes
上傳時間: 2015-09-26
上傳用戶:liuchee
Romberg求定積分 輸入:積分區間[a,b],被積函數f(x,y,z) 輸出:積分結果
上傳時間: 2015-10-14
上傳用戶:妄想演繹師
代入法的啟發示搜索 我的代碼實現是:按照自然語言各字母出現頻率的大小從高到低(已經有人作國統計分析了)先生成一張字母出現頻率統計表(A)--------(e),(t,a,o,i,n,s,h,r),(d,l),(c,u,m,w,f,g,y,p,b),(v,k,j,x,q,z) ,再對密文字母計算頻率,并按頻率從高到低生成一張輸入密文字母的統計表(B),通過兩張表的對應關系,不斷用A中的字母去替換B中的字母,搜索不成功時就回退,在這里回朔是一個關鍵。
上傳時間: 2015-10-24
上傳用戶:wanqunsheng
飛思卡爾半導體公司是摩托羅拉的子公司,在長達 5 0 多年開發半導體產品的過程中, 積累了豐富的無線射 頻和無線技術領域經驗。憑借在這個領域的豐富經驗, 我們提供符合IEEE 802.15.4 標準、支持ZigBee 技術的完 整平臺解決方案。飛思卡爾為窗戶提供一站式商店,包 括射頻收發器、MCU、傳感器、MAC 軟件、Z-Stack ZigBee 軟件和靈活的開發工具套件, 從而使無線技術變得簡 單。實際上,任何需要較長電池壽命和聯網功能的低數 據速率、監控、控制或自動應用,都能從基于IEEE802. 15.4 標準和ZigBee 技術的無線連接解決方案中受益。
上傳時間: 2014-11-29
上傳用戶:qq521
hc to avi ... ...\M4ToAvi(english).exe ... ...\M4ToAvi(中文版本).exe .........\Meida Player Filter Version 3.8 .........\...............................\0009 .........\...............................\....\_Setup.dll .........\...............................\....\_Setup1.dll .........\...............................\0804 .........\...............................\....\_Setup.dll .........\...............................\....\_Setup1.dll .........\...............................\setup.exe .........\...............................\setup.ins .........\...............................\_setup.1 .........\...............................\_setup.lib .........\...............................\_setup.lst .........\...............................\_setup.z
上傳時間: 2013-12-24
上傳用戶:caiiicc
目前最快速的字符串排序算法,1.0版本僅僅支持a-z 26個小寫字符
上傳時間: 2014-01-11
上傳用戶:陽光少年2016
詞法分析器制作與應用 設計思想 (1)程序主體結構部分: 說明部分 %% 規則部分 %% 輔助程序部分 (2)主體結構的說明 在這里說明部分告訴我們使用的LETTER,DIGIT, IDENT(標識符,通常定義為字母開頭的字母數字串)和STR(字符串常量,通常定義為雙引號括起來的一串字符)是什么意思.這部分也可以包含一些初始化代碼.例如用#include來使用標準的頭文件和前向說明(forward ,references).這些代碼應該再標記"%{"和"%}"之間 規則部分> 可以包括任何你想用來分析的代碼 我們這里包括了忽略所有注釋中字符的功能,傳送ID名稱和字符串常量內容到主調函數和main函數的功能. (3)實現原理 程序中先判斷這個句語句中每個單元為關鍵字、常數、運算符、界符,對與不同的單詞符號給出不同編碼形式的編碼,用以區分之。 PL/0語言的EBNF表示 <常量定義>::=<標識符>=<無符號整數> <標識符>::=<字母>={<字母>|<數字>} <加法運算符>::=+|- <乘法運算符>::=*|/ <關系運算符>::==|#|<|<=|>|>= <字母>::=a|b|…|X|Y|Z <數字>::=0|1|2|…|8|9
上傳時間: 2015-11-04
上傳用戶:zhengzg
design LP,HP,B S digital Butterworth and Chebyshev filter. All array has been specified internally,so user only need to input f1,f2,f3,f4,fs(in hz), alpha1,alpha2(in db) and iband (to specify the type of to design). This program output hk(z)=bk(z)/ak(z),k=1,2,..., ksection and the freq.
標簽: Butterworth internally Chebyshev specified
上傳時間: 2015-11-08
上傳用戶:253189838