摘要: Airbnb Real-time Personalization using Embeddings for Search Ranking at Airbnb Contributions Real-timr personalization(实时个性化) 以前工作的个性化或者说是项目推荐都是通过离线生成 阅读全文
posted @ 2021-08-02 16:49 BOTAK 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 53-1 数字在有序数组中出现的次数 统计一个数字在排序数组中出现的次数。 // 二分查找到中间target的位置,然后往左右延伸 class Solution { public int search(int[] nums, int target) { if(nums == null || nums 阅读全文
posted @ 2021-06-21 11:06 BOTAK 阅读(56) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2020.cnblogs.com/blog/1813632/202106/1813632-20210617154210800-1533808455.png) 阅读全文
posted @ 2021-06-17 15:42 BOTAK 阅读(18) 评论(0) 推荐(0) 编辑
摘要: import java.util.Stack; class getMin{ Stack<Integer> stack; int min; public getMin(){ stack = new Stack<Integer>(); min = Integer.MIN_VALUE; } public 阅读全文
posted @ 2021-06-15 14:30 BOTAK 阅读(46) 评论(0) 推荐(0) 编辑
摘要: public static int max=0; public static void process(int[] arr,int index,int k){ if(k==0||index==arr.length){//如果已经将k个0变成1了,或者到达了字符串末尾了 int tmp=0;//开始统 阅读全文
posted @ 2021-06-10 11:15 BOTAK 阅读(47) 评论(0) 推荐(0) 编辑
摘要: class Solution{ public static void main(String[] args) { String s1 = "abeababeabf"; String s2 = "abeabf"; System.out.println(KMP(s1,s2)); } public sta 阅读全文
posted @ 2021-06-10 11:11 BOTAK 阅读(39) 评论(0) 推荐(0) 编辑
摘要: class Solution{ public static void main(String[] args) { int[] nums = new int[]{4,6,8,5,9}; heapSort(nums2); for(int i:nums2) System.out.print(i+" "); 阅读全文
posted @ 2021-05-29 14:31 BOTAK 阅读(39) 评论(0) 推荐(0) 编辑
摘要: class LRU{ static class Node{ public int key; public int val; public Node next; public Node prev; public Node(int k,int v){ this.key = k; this.v = v; 阅读全文
posted @ 2021-04-26 11:47 BOTAK 阅读(49) 评论(0) 推荐(0) 编辑
摘要: /** 归并排序 */ class Solution{ // static int count = 0; public static void main(String[] args) { int[] nums = new int[]{7,3,2,6,0,1,5,4}; merge(nums,0,nu 阅读全文
posted @ 2021-04-26 11:45 BOTAK 阅读(29) 评论(0) 推荐(0) 编辑
摘要: Spring 概述 简介 Spring 是一个开源免费的框架,容器 Spring 是一个轻量级的框架,非侵入性的 控制反转IoC,面向切片 对事物的控制,对框架的支持 总结一句话:Spring就是一个轻量级的控制反转(IoC)和面向切面编程(AOP)的框架 组成 Spring Spring boot 阅读全文
posted @ 2021-04-14 16:56 BOTAK 阅读(58) 评论(0) 推荐(0) 编辑