ExtraCurriculars Coding Experience

Projects notes

Posted by Henry Hu on Thursday, June 1, 2023

Wells Fargo

Task 1

tags: Data Modeling, Entity Relationship Diagramming, System Design
Develop a data model for a new investment management system

  • The system will help manage multiple financial advisors’ clients.
  • Financial advisors must be able to create, update, and remove clients.
  • Each financial advisor can have numerous clients.
  • Financial advisors will be using the system during standard business hours from 9 to 5 on weekdays.
  • Each client will have a portfolio.
  • Client portfolios may contain zero or more securities.
  • Financial advisors must be able to create, update, and remove securities from client portfolios.
  • Every security has a name, a category, a purchase date, a purchase price, and a quantity.
  • The system must have 99% uptime.
  • The system must expose a React dashboard.
  • The system’s backend must use the Spring framework for Java.
  • The system must store data in a relational database.
  • The system must be highly scalable.

Task 2

Implement your data model using the JPA

Questions

  • 21

    •  /**
       * Definition for singly-linked list.
       * public class ListNode {
       *     int val;
       *     ListNode next;
       *     ListNode() {}
       *     ListNode(int val) { this.val = val; }
       *     ListNode(int val, ListNode next) { this.val = val; this.next = next; }
       * }
       */
       class Solution {
           public ListNode mergeTwoLists(ListNode list1, ListNode list2) {
           // Base case: if either list is null, return the other list
           if (list1 == null) {
               return list2;
           } else if (list2 == null) {
               return list1;
           }
      
           // Recursive case: compare the values at the current nodes of both lists
           if (list1.val < list2.val) {
               // If the value in l1 is smaller, merge the rest of l1 with the remaining nodes in l2
               list1.next = mergeTwoLists(list1.next, list2);
               return list1;
           } else {
               // If the value in l2 is smaller, merge the rest of l2 with the remaining nodes in l1
               list2.next = mergeTwoLists(list1, list2.next);
               return list2;
           } 
           }
       }
      

「少种的少收,多种的多收,捐款会鼓励作者多创作以及教会福音传播!!」

少种的少收,多种的多收,捐款会鼓励作者多创作以及教会福音传播!!

使用微信扫描二维码完成支付