Adonais's notebook


  • Home

  • About

  • Tags

  • Categories

  • Archives

  • Search

[Interview] 2024

Posted on 2024-03-31 | In Leetcode , Sorting |
Retool1. Word search第一题 写个function实现猜词游戏的结果 两个参数 一个答案 一个猜的词 输出结果 答案跟猜的词里面都没有重复的字母比如答案是“abcd” 猜的是“acde” 结果就是“GYY” G表示good 位置跟字母都对 Y表示字母对 位置不对 表示什么都不是第 ...
Read more »

[Leetcode] State Machine

Posted on 2024-03-30 | In Leetcode , State Machine |
8. String to Integer (atoi)Leetcode: https://leetcode.com/problems/string-to-integer-atoi/description/ 12345678910111213141516171819202122232425262728 ...
Read more »

[DDIA] Chapter 3. Storage and Retrieval

Posted on 2023-09-15 | In DDIA |
Stoarge optimized for transactional workloads vs optimized for analytics Log: an append-only sequence of records IndexAn index is an additional stru ...
Read more »

[LLM] Prompt Engineering

Posted on 2023-08-18 | In LLM |
Prompt Engineering Guide Few-shot promptsAllows us to provide exemplars in prompts to steer the model towards better performance. Chain-of-Thought (Co ...
Read more »

[LLM] Langchain Usecases

Posted on 2023-08-17 | In LLM |
SummarizationSummaries of short text123456789101112131415161718192021222324from langchain.llms import OpenAIfrom langchain import PromptTemplate# Note ...
Read more »

[LLM] Langchain Concepts

Posted on 2023-08-15 | In LLM |
Cookbook 1 - ConceptsCookbook 2 - Usecases There are two types of language models, which in LangChain are called: LLMs: this is a language model whic ...
Read more »

[Kotlin] Basics

Posted on 2022-08-23 | In Kotlin |
Variables123456// readonly variableval name: String = "Nate"// mutable variablevar name2: String = "Tom"name2 = "" Types in Kotlin are by default non- ...
Read more »

[System Design] Realtime Communication

Posted on 2022-06-26 | In System Design , Realtime Communication |
Ajax PollingPolling is a standard technique used by the vast majority of AJAX applications. The basic idea is that the client repeatedly polls (or req ...
Read more »

[System Design] Design Count Like Feature

Posted on 2022-06-26 | In System Design , Count Like |
Read more »

[System Design] Stream Processing

Posted on 2022-06-22 | In System Design , Stream Processing |
References: https://lethain.com/introduction-to-architecting-systems-for-scale/ Message QueuesMessage queues allow your web applications to quickly pu ...
Read more »
12…14

Adonais0

140 posts
131 categories
112 tags
GitHub Twitter
© 2024 Adonais0
Powered by Hexo
|
Theme — NexT.Mist v7.8.0