We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Data Structures
- Arrays
- Dynamic Array
- Discussions
Dynamic Array
Dynamic Array
Sort by
recency
|
2063 Discussions
|
Please Login in order to post a comment
Data structures are the backbone of efficient programming—they organize and store data in ways that make problem-solving faster and more effective. betinexchange
Who wrote this description?! How is this problem even live... idx = (x ^ lastAnswer) % n <- the description is missing the mod operator
Jesus, this is the most horribly written problem so far. idx calc is wrong, it explains the queries poorly, the return type is wrong for java. Do youself a favor and just screen shot the problem statement and have AI rewrite it to something more comprehensible.
Terrible way to explain a hash table.
Wrong problem statement when computing idx, and so its misleading.
public static List dynamicArray(int n, List> queries) { List lastAnswers = new List();