We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/** * @param {string} s * @return {boolean} */ var isPalindrome = function(s) { if(s==""||s==null) return true; let str = s.replace(/[^a-z0-9]/ig, ''); str = str.toLocaleLowerCase(); str = str.split(''); let l = 0; let r = str.length-1; while(l<r){ if(str[l]+'' !== str[r]+''){ return false; } else { l++; r--; } } return true; };
https://medium.com/swlh/web-sockets-in-node-js-f3b3a4abcbe3
https://www.cnblogs.com/carbo-T/p/10330474.html
https://www.jianshu.com/p/333f390f2e84
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Algorithm 验证回文字符串
使用正则表达式提取字符串中的字母和数字,将其全部转换成小写,然后转成数组。
使用双引用从数组两端往中间一一比较,一旦出现不等的情况直接返回false。否则为true
执行用时:80 ms
Review 理解 Nodejs 中的 Web Sockets
https://medium.com/swlh/web-sockets-in-node-js-f3b3a4abcbe3
Tip 关于React Native中FlatList的onEndReached属性频繁调用的一种解决办法
https://www.cnblogs.com/carbo-T/p/10330474.html
Share React 性能优化,你需要知道的几个点
https://www.jianshu.com/p/333f390f2e84
The text was updated successfully, but these errors were encountered: