Given two strings ransomNote and magazine, return true if ransomNote can be cons...
Given two integer arrays nums1 and nums2, return an array of their intersection....
Given a non-negative integer x, return the square root of x rounded down to the...
You are given a large integer represented as an integer array digits, where each...
Given a string s, return the string after replacing every uppercase letter with...
Given a string s, find the first non-repeating character in it and return its in...
Write a function that reverses a string. The input string is given as an array o...
A phrase is a palindrome if, after converting all uppercase letters into lowerca...
1.概念先講清楚今天的目標是:(一)在自己電腦跑一個小網站(本地伺服器)。(二)用ngrok幫它建立一個可以被外部存取的網址。(三)任何人(朋友、LINE Bo...
1.為什麼要安裝ngrok?雖然ngrok本身就是一個單一執行檔,但如果只是下載來執行,每次都會出現臨時的限制。只有綁定自己的帳號(加上authtoken)之後...
1.問題背景我們在開發網站或API時,通常程式都跑在自己的電腦,這時候你能自己測試沒問題,但如果想要給外面的人或外部服務來存取,就會遇到這些難題:(一)固定IP...
You are given two integer arrays nums1 and nums2, sorted in non-decreasing order...
Given a string s consisting of words and spaces, return the length of the last w...
Given an integer array nums, find the subarray with the largest sum, and return...
Given a sorted array of distinct integers and a target value, return the index i...
Given an integer array nums and an integer val, remove all occurrences of val in...
Given an integer array nums sorted in non-decreasing order, remove the duplicate...
昨天學會了用ngrok把本地的網站公開到外部。今天要更進一步學習如何利用這個特性來進行跨裝置測試,也就是讓手機、平板、甚至別台電腦,都能直接開啟你在自己電腦上開...
昨天學了Node.js+Express API,今天來學前端React+ngrok這對前端開發者特別實用,因為很多時候我們辛苦做好的前端頁面,只能在自己的電腦l...
1.為什麼要用 Express+ngrok?很多前端工程師在學習API時,會先用Node.js+Express來寫簡單的後端服務。但問題是API跑在本地loca...
Django與Flask的差異Flask:輕量級框架,常用來快速測試API或小專案。Django:大型框架,自帶完整功能(資料庫ORM、後台管理、模板系統、使用...
為什麼要用Flask+ngrok?(一)Flask:Python最常見的輕量級Web框架,幾行程式碼就能跑出API。(二)ngrok:把這個本地API變成一個對...
ngrok的安全風險1.本地服務暴露到網路(一)ngrok就是幫你把localhost映射到公開網址。(二)任何人只要知道這個網址,就能存取你的本地服務。(三)...
為什麼要比較免費版和付費版?ngrok的核心價值在於快速把本機服務公開到網路,免費版就能做到這件事。但當需求增加,例如固定網址、多人同時連線、長時間穩定服務,就...
1.為什麼需要自訂subdomain免費版問題:每次執行ngrok http 5000時ngrok會分配一個隨機網址,這個網址在你關掉ngrok或重開電腦後就會...
當你用ngrok http 5000建立隧道後,其實ngrok會自動開一個本地後台給你,這個dashboard就像一個小型流量監控工具,能幫你追蹤每一筆API請...
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and...
Given an integer x, return true if x is a palindrome, and false otherwise.Exampl...
Given a string s containing just the characters '(', ')', '{', '}', '[' and ']',...
1.Two Sum 題目描述 給你一個整數陣列 nums 和一個目標值 target,請你在陣列中找出 兩個數字,使它們的和等於目標值,並返回它們的索引。 你可...