Misc.onclusion (Discussion 14-END) (Ôn tập cấu trúc dữ liệu) - Christine Zhou
Slide buổi thảo luận cuối cùng của trợ giảng Christine Zhou, bao gồm ôn tập cấu trúc dữ liệu, bài tập phỏng vấn, và tổng quan khóa học CS.
プレビューを生成中...
Discussion 14: Misc.onclusion Christine Zhou Agenda Announcements Kahoot Design Q’s! CS Courses Overview Interview Question Tips Announcements Last discussion!! Want to talk about finals or anything else? Send me an email! RRR week announcements on Piazza by the end of this weekend! Project 3 Phase 2 due tonight! Checkoffs start today until Friday Project 3 gold points have been extended to Sunday Announcement to come later today Discussion survey: tinyurl.com/cz-disc14-sp19 Kahooooot https://create.kahoot.it/kahoots/my-kahoots Design! Nice! You got an interview with Oski Muskerjobs, CEO of BearbnBeats, the hot new music streaming startup headquartered in Soda Hall. For each of the following scenarios, determine which data structures (doesn’t have to be strictly Java) would give the best performance and what algorithms would be used. Additionally, give the worst-case runtime for any operations listed. BearbnBeats provides users access to millions of songs. Muskerjobs has a list of N (song, album) pairs. Assuming all album names are unique, find the number of songs in each album. Data Structures: HashMap<String, Integer> Algorithm: Iterate through the list of (song, album) pairs, maintaining a mapping from album name to number of songs, incrementing at each occurrence. Runtime: Θ(N) Muskerjobs has a list of all N song names in BearbnBeats’ database, and wants to query if a given Song is in the database. Optimize for both constructing the solution and matching a query. Data Structures: Set<Song> Algorithm: Iterate through the list of songs, adding each song to the set. Runtime: Θ(N) for construction and Θ(1) for query Muskerjobs wants to start developing auto-complete for search on BearbnBeats’ website. When a user types in the first K characters of a query, we want the website to suggest the number of songs that have the same K character prefix. Assume that no songs have a name longer than M and there are N distinct songs. Optimize for bo
… Tải file gốc để đọc toàn bộ tài liệu.
- ドキュメント名
- Misc.onclusion (Discussion 14-END) (Ôn tập cấu trúc dữ liệu) - Christine Zhou
- 学校 / コース
- University of California, Berkeley · Lập trình Java
- 著者(ドキュメント内)
- Christine Zhou
- 内容
- Tài liệu này là biên bản thảo luận cuối cùng, cung cấp thông báo, các bài tập thiết kế về cấu trúc dữ liệu và thuật toán cho các tình huống thực tế, và tổng quan về các khóa học CS.
- 目次
- Agenda
- Announcements
- Kahoot
- Design Q’s!
- CS Courses Overview
- Interview Question
- Tips
- Doc.pages
- 27 ページ
- アップロード者
- Giang Le
よくある質問
Tài liệu này có miễn phí không?
Có. “Misc.onclusion (Discussion 14-END) (Ôn tập cấu trúc dữ liệu) - Christine Zhou” miễn phí — bạn chỉ cần đăng nhập rồi bấm Tải xuống để lấy file gốc.
Tài liệu dài bao nhiêu trang?
Tài liệu gồm 27 trang, thuộc môn Lập trình Java. Bạn có thể xem trước online trước khi tải.
Tôi có thể xem trước trước khi tải không?
Có. Bạn xem trước tài liệu ngay trên trang này bằng trình đọc online, rồi quyết định tải về.

コメント (0)
まだコメントはありません。最初のコメントを書きましょう!