自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 收藏
  • 关注

原创 华为通用软件开发实习面经base杭州(C语言,网络安全方向)

Base 杭州华为通用软件开发技术一面自我介绍询问个人项目这个web应用的服务器是怎么编写的,当时你是负责做什么工作说一下你做的这个游戏吧,用了什么语言你的项目里有几个都是你作为小组长的,你当时是怎么找的队员?你是怎么分配工作的?如果出现矛盾你会怎么解决?最擅长什么语言,对C了解吗刷题 leetcode 20 有效符号:解法这里我用了C语言去解题,里面有一处小毛病当时没找出来,function的最后应该要return top == 0, 链接里已改正。这学期在上什么课说

2021-05-08 17:03:04 775 1

原创 leetcode-20. Valid Parentheses 有效的括号 (C) 华为一面

leetcode 20. Valid ParenthesesGiven a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.An input string is valid if:Open brackets must be closed by the same type of brackets.Open brackets

2021-05-08 14:57:37 204

原创 快手海外用户增长前端开发暑期实习生一面 (凉经)

快手 前端开发海外用户增长 一面 凉经没有自我介绍,直接上来问问题问我是想找日常还是暑期实习我回答目前想努力增长工作经验技术,如果有转正当然是最好的url渲染过程项目内容,里面怎么实现接口的,如果用户申请获取资源,什么方式,过程?回答用http get请求访问相对应的接口获取url用户登录的时候,怎么知道是用户在使用而不是其他人?cookie存储怎么防止cookie被盗取回答同源策略,详细解释cookie 加密比如 MD5问会不会reac

2021-04-21 15:45:54 367

原创 力扣 206 -翻转链表

反转链表 206 4/20/2020Reverse Linked List - Easy地址: https://leetcode.com/problems/reverse-linked-list/题目描述Given the head of a singly linked list, reverse the list, and return the reversed list.Example 1:Input: head = [1,2,3,4,5]Output: [5,4,3,2,1]

2021-04-20 19:49:43 92

原创 力扣704 - Binary Search 二分查找

力扣704 - Binary Search 二分查找题目描述Given an array of integers nums which is sorted in ascending order, and an integer target, write a function to search target in nums. If target exists, then return its index. Otherwise, return -1.Example 1:Input: nums = [

2021-04-14 19:22:35 85

原创 Introduction to AI - UCLA CS161 - Lec1

Lecture 1这个专栏用于记录自己上课的笔记和总结IntroductionUCLA CS143 介绍AI的相关概念和算法以及LISP语言录屏https://youtube.com/playlist?list=PLlDG_zCuBub76uMTn8LH7sRUINxkldM4tLISPOnline IDE: https://jscl-project.github.io/functional languageLisp expression:numericsymbolic 象征的bo

2021-04-13 01:49:31 124

原创 力扣 62. Unique Paths-不同路径-二维方向上到达某点的路径数(Python版本)

力扣 62. Unique Paths-不同路径(Python版本)题目描述A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corne

2021-04-04 20:42:15 166 1

原创 力扣70. Climbing Stairs-爬楼梯-爬楼梯方案数 (Python)

力扣70. Climbing Stairs 爬楼梯题目描述You are climbing a staircase. It takes n steps to reach the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?假设你正在爬楼梯。需要 n 阶你才能到达楼顶。每次你可以爬 1 或 2 个台阶。你有多少种不同的方法可以爬到楼顶呢?Ex

2021-04-03 22:59:28 170

原创 力扣66. Plus One - 加一 (Python版本,两解题思路)

力扣66. 加一 (Python版本,两解题思路)题目描述Given a non-empty array of decimal digits representing a non-negative integer, increment one to the integer.The digits are stored such that the most significant digit is at the head of the list, and each element in the arra

2021-04-03 14:26:03 119

原创 力扣1. Two Sum 两数之和 (python)

Leetcode 1. Two Sum 两数之和 (python)题目Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.You may assume that each input would have exactly one solution, and you may not use the same ele

2021-04-01 11:28:36 230 1

原创 力扣 160 - Intersection of Two Linked Lists. (相交链表) Python双指针

力扣 160 - Intersection of Two Linked Lists. (相交链表) Python双指针https://leetcode.com/problems/intersection-of-two-linked-lists/Given the heads of two singly linked-lists headA and headB, return the node at which the two lists intersect. If the two linked lis

2021-04-01 01:03:13 181 1

原创 数据结构 - 链表 - 简介 -python

简介应用场景:有序数组类题目平常我们初学解决数组的题目,大多是单指针(index)去遍历操作。双指针一般用在有序数组,分别放在首部和尾部,向中间遍历直至两指针相交。复杂度为O(n)。用法初始定位: 设两个指针 headA和head(B)headA = 0;headB = len(array)-1循环结束判断两指针是否相遇 while(headA < headB) { …… }...

2021-04-01 01:00:55 102

原创 【求问帖】数组相邻元素最大公约数不断替换直到所有元素为1 - 最少步骤数

给一组序列,求其中相邻两个元素之间的最大公约数。一直不停求下去直到所有元素被替换为1. 如果实在不能全部替换,则返回-1输入的第一行为元素个数 n ,第二行为序列arrExample1Input:44 1 3 5Output3Example2:Input:510 20 30 40 50Output:-1上面的题目是今天模拟考的一道算法题,限时半小时。思路:很明显如果序列里出现1,这个序列就一定能全部转为1,因为1和任何数的公约数都为1。那么最先设立的一个.

2021-03-30 15:18:48 378

原创 动态规划 复习 - 组成部分和步骤

简介本文为复习动态规划的笔记,在UCLA CS180的笔记基础上增添了B站up主 七章算法的教学视频自学笔记内容DP 的定义是:Consider a problem of size n• Split the problem into smaller parts​ 把问题拆分为多个子问题• The solution of the original problem can be iteratively computed based on the solutions of subproblems

2021-03-29 14:13:48 157

原创 字节笔试 - 寿司最大价格 - 动态规划 - 数组不相邻数之和最大值

寿司题 - 数组不相邻数之和最大值此题来自于朋友在字节的笔试, 同类题目可见leetcode 198题 House Robber.给你一堆寿司 不能选相邻的盘子 然后要选出价格加起来最高的那些 print价格举例 [9 1 4 3] 输出13如果是[9 1 3 2 5] 输出17从题目知道这题本质是给一组数组,求数组里不相邻元素的最大值和,也就是说,求最优解。思路最优解题目使用DP。第一步是 **确定状态 **。假设有10碟寿司,价格如下寿司序列[0][1][2][

2021-03-29 13:53:35 315 3

原创 刷题 - 字符串类型题目(不定时更新)

刷题 - 字符串类型题目(不定时更新)1. 字符串最后一个单词的长度 (Python- split())x = input()y = x.split()length = len(y[-1]) # -1 最后一个单词print(length)要点:split() 对字符串进行切片(根据空格符包括空格换行(\n)、制表符(\t)等)。如果参数num有指定值,则分割num+1个子字符串参数str – 分隔符,默认为所有的空字符,包括空格、换行(\n)、制表符(\t)等。num – 分割次

2021-03-28 13:58:12 571

转载 安卓开发学习

简介Android是开源的,基于Linux的移动设备操作系统。可以说是一个开发框架,主要使用JAVA语言。开发环境搭建下载Android Studio: https://developer.android.com/studio或者Eclipse IDE(个人感觉多被用于Windows系统)注意事项注意的是开发的时候尽量不要使用Java的库或者Android的依赖注入库。原因如下来自谷歌官方文档尽量不要使用java libraryExternal library code is ofte

2021-03-27 14:33:34 83

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除