This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* livepatch_ipvs_estimator.c - IP_VS Live Patching | |
*/ | |
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | |
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/livepatch.h> | |
#include <net/ip_vs.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
func alg(a []int) (start, end int) { | |
maxRangeStart := 0 | |
maxRangeEnd := 0 | |
maxValue := 0 | |
for i := 0; i < len(a); i++ { | |
n := a[i] | |
max := -1 | |
maxIdx := 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function()%7Bfunction%20b(f)%7Bvar%20g%3Ddocument.createElement(%22div%22)%3Breturn%20g.innerHTML%3Df.trim()%2Cg.firstChild%7Dfunction%20c(f)%7Breturn%20f.replace(%2F%26amp%3B%2Fg%2C%22%26%22).replace(%2F%26lt%3B%2Fg%2C%22%3C%22).replace(%2F%26gt%3B%2Fg%2C%22%3E%22).replace(%2F%26quot%3B%2Fg%2C%22%5C%22%22).replace(%2F%26%23039%3B%2Fg%2C%22'%22)%7D(function(f)%7Bvar%20g%3Ddocument.querySelector(%22%23root%20header%22).offsetHeight%2Ch%3Ddocument.createElement(%22div%22)%2Ci%3Ddocument.createElement(%22div%22)%2Cj%3Ddocument.createElement(%22div%22)%3Bj.style.height%3Dg%2B%22px%22%2Ch.appendChild(j)%2Ch.appendChild(i)%3Bvar%20k%3Df.map(p%3D%3E%7Bvar%20q%3Ddocument.createElement(%22div%22)%2Cr%3Ddocument.createElement(%22a%22)%3Br.setAttribute(%22target%22%2C%22_blank%22)%2Cr.setAttribute(%22href%22%2Cp)%2Cr.setAttribute(%22class%22%2C%22Button%22)%2Cr.setAttribute(%22style%22%2C%22color%3A%2300000000%3B%22)%3Bvar%20s%3Ddocument.createElement(%22img%22)%3Breturn%20s.src%3Dp%2Cs.style.maxWidth%3D%221 |