Web Page Marker Pen All In One
Web 網頁
標記筆
Free Screenshot
Capture & Annotation
Tool
Useful extension for taking screenshots and adding annotations to them. Visualize, annotate, and share screenshots in a few clicks!
用於擷取螢幕截圖並新增註釋的實用擴充套件。只需單擊幾下即可視覺化
、註釋
和共享螢幕截圖
!
https://chrome.google.com/webstore/detail/maehgokeeglkcmoncpimbdhbhfhhafhi
https://chromewebstore.google.com/detail/free-screenshot-capture-a/maehgokeeglkcmoncpimbdhbhfhhafhi
Page Marker
- Draw on Web
Draw
or highlight
on any website in real time.
Add text, lines, and shapes. Then, save your work.
https://pagemarker.org/
demos
leetcode
function subarraysDivByK(nums: number[], k: number): number {
const map = new Map<number, number>();
map.set(0, 1);
let sum = 0;
let count = 0;
let remainder = 0;
for (let num of nums) {
sum += num;
// ???
remainder = ((sum % k) + k) % k;
if (map.has(remainder)) {
count += map.get(remainder)!;
}
map.set(remainder, (map.get(remainder) || 0) + 1);
}
return count;
};
// function subarraysDivByK(nums: number[], k: number): number {
// // -5 / 0 / 5
// let count: number = 0;
// // 單個元素
// for(let i = 0; i < nums.length; i++) {
// if(Math.abs(nums[i] % k) === 0) {
// // console.log(`✅ nums[i] =`, nums[i])
// count += 1;
// }
// }
// // 多個元素
// let i = 0;
// let j = 0;
// let remainder = 0;
// for(i; i < nums.length - 1; i++) {
// remainder = nums[i];
// // console.log(`✅ sum =`, sum)
// // reminder 提醒 ❌
// // remainder 餘數 ✅
// for(j = i + 1; j < nums.length; j++) {
// remainder = (remainder + nums[j]) % k;
// // console.log(`❌ sum =`, sum)
// if(Math.abs(remainder) === 0) {
// count += 1;
// }
// }
// }
// return count;
// };
/*
Time Limit Exceeded
66 / 73 testcases passed
nums =
[0,0,0,0,0,0,0,0,0
0,0,0,0,0,0,0,0,0]
k =
10000
*/
// function subarraysDivByK(nums: number[], k: number): number {
// // -5 / 0 / 5
// let count: number = 0;
// // 單個元素
// for(let i = 0; i < nums.length; i++) {
// if(Math.abs(nums[i] % k) === 0) {
// // console.log(`✅ nums[i] =`, nums[i])
// count += 1;
// }
// }
// // 多個元素
// let i = 0;
// let j = 0;
// let sum = 0;
// for(i; i < nums.length - 1; i++) {
// sum = nums[i];
// // console.log(`✅ sum =`, sum)
// for(j = i + 1; j < nums.length; j++) {
// sum += nums[j];
// // console.log(`❌ sum =`, sum)
// if(Math.abs(sum % k) === 0) {
// count += 1;
// }
// }
// }
// return count;
// };
// function subarraysDivByK(nums: number[], k: number): number {
// // -5 / 0 / 5
// let i = 0;
// let j = 0;
// let sum = 0;
// let result = [];
// let temp = [];
// for(let i = 0; i < nums.length; i++) {
// if(Math.abs(nums[i] % k) === 0) {
// result.push([nums[i]]);
// }
// }
// for(i; i < nums.length - 1; i++) {
// // if(Math.abs(nums[i] % k) === 0) {
// // console.log(`✅ nums[i] =`, nums[i]);
// // result.push([nums[i]]);
// // console.log(`❓ result =`, result);
// // }
// temp = [];
// j = i + 1;
// temp.push(nums[i])
// for(j; j < nums.length; j++) {
// temp.push(nums[j])
// sum = temp.reduce((s, item) => s += item, 0);
// if(Math.abs(sum % k) === 0) {
// result.push(temp);
// // break;
// }
// console.log(`🚀 result =`, result, j);
// }
// // console.log(`🚀 result =`, result, j);
// }
// console.log(`❌ result =`, result);
// return result.length;
// };
/*
Output Limit Exceeded
38 / 73 testcases passed
nums =
[0,0,0,0,0,0,0,
....
,0,0,0,0,0,0,0]
k =
1000
*/
https://leetcode.com/problems/subarray-sums-divisible-by-k/editorial/?source=submission-ac
https://chromewebstore.google.com/detail/page-marker-draw-on-web/jfiihjeimjpkpoaekpdpllpaeichkiod
(🐞 反爬蟲測試!打擊盜版⚠️)如果你看到這個資訊, 說明這是一篇剽竊的文章,請訪問 https://www.cnblogs.com/xgqfrms/ 檢視原創文章!
refs
Google Chrome Devtools Extensions
https://chromewebstore.google.com/detail/yellow-highlighter-pen-fo/lnmengjdnfjbochkdkcjbbpildacancp
https://chromewebstore.google.com/detail/annotate-the-web/hkdbcemiphlcpmcphjgfaepgciimcoef
https://chromewebstore.google.com/detail/spade-draw-on-and-annotat/kamhfnamfpipghhnbaolbgemgnafkejo
©xgqfrms 2012-2021
www.cnblogs.com/xgqfrms 釋出文章使用:只允許註冊使用者才可以訪問!
原創文章,版權所有©️xgqfrms, 禁止轉載 🈲️,侵權必究⚠️!