Skip to content

Instantly share code, notes, and snippets.

View xfy0012's full-sized avatar
🎯
Focusing

FANYING XU xfy0012

🎯
Focusing
  • London
View GitHub Profile
@xfy0012
xfy0012 / test.cy.js
Last active March 26, 2024 01:14
whatsapp_sendmessage_api_test
/**
* 1. API Functionality Description
* This API receives a JSON request body containing message content, sender and receiver information, and message template with its data. It sends messages to specified WhatsApp numbers via the InfoBip platform. The API supports internationalization of messages, allowing the language of the message content to be specified.
*
* 2. Input and Output
* Input:
* - from: The WhatsApp number of the message sender.
* - to: The WhatsApp number of the message recipient.
* - messageId: A unique identifier for the message.
* - content:
@xfy0012
xfy0012 / gist:b561e62313cdfbb8623a7764fac4676c
Created April 28, 2023 19:51 — forked from psayre23/gist:c30a821239f4818b0709
Runtime Complexity of Java Collections
Below are the Big O performance of common functions of different Java Collections.
List | Add | Remove | Get | Contains | Next | Data Structure
---------------------|------|--------|------|----------|------|---------------
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array