26 Answered Questions for the topic Data Structures
10/24/21
Describe the difference between Selection, Bubble and Insertion Sort
Describe the difference between Selection, Bubble and Insertion Sort
10/24/21
Explore how Bubble sort works and how it is different from the insertion and selection sort.
Explore how Bubble sort works and how it is different from the insertion and selection sort.
Data Structures Discrete Math
06/09/21
Proving this Statement
Use the definition of Big-Oh to prove that following statement:Suppose T1(N) = O(f(N)) and T2(N) = O(f(N)), T1(N) + T2(N) = O(f(N))
02/11/21
What will be the fastest way to call all the members
A table stores the data for all the members of an exotic resort. Members are identified by these numbers 1,5,30,70,80,20,15,100,40,25,7,3,8,33,22. All members are to be invited in a meeting to...
more
Data Structures Computer Programming
12/19/20
C++ Programming
Write a C++ code to Keep count of how many times each IP appears in the last 90minutes of the access log using the C data structure.
Data Structures Computer Science
12/04/20
Write an algorithm
Write an algorithm for converting sorted array to Binary Search Tree(BST).
Data Structures Computer Science
12/04/20
Write an algorithm
Write an algorithm for converting BST to circular doubly linked list with space complexity O(1).
11/11/20
Write an algorithm to implement two stacks in one array.
Write an algorithm to implement two stacks in one array A[1...n] in such a way that neitherstack overflows unless the total number of elements in both stacks together is n. The PUSHand POP...
more
Data Structures Computer Science
11/11/20
Write the procedure to represent the sparse matrix using the linked list.
Write the procedure to represent the sparse matrix using the linked list(The algorithm)
10/11/20
Time efficient algorithm.
Write a time efficient algorithm to find the ith maximum and ith minimum number from thereverse sorted array.
10/11/20
Find the total number of comparisons:
Find out total number of comparisons made in the execution of the loop for any n > 0 in termof CEILING or FLOOR function.int j, n;j = 1;while (j <n) j = j*2;I'm not able to understand...
more
09/19/20
Computer Science - Graphs
I've been given an adjacency matrix and asked to state whether the corresponding graph is undirected or not.How do we say whether a graph is undirected or not simply looking at its adjacency matrix.
07/13/20
Looking for a tutor! I am self-taught in Node, Express, Python and SQL
Hey there!My name is James, and I started teaching myself html and css about 5 years ago, then jumped into javascript.I am hoping to change direction and focus on python and sql, more along the...
more
05/11/20
Selection Sort - Java
Write a Java program to implement the selection sort algorithm in Java, input the following array and display the sorted on the screen. Write a function selectionsort(Arr,N), which sort the array...
more
05/07/20
LinkedList Java
Imagine we have to create a Linked list with 5,8 as elements and at first before adding them head should pointed to null. And since 8 is the last element, next of 8 also should point to a null.How...
more
04/11/20
AVL Trees - Java Data Structures & Algorithms
Can someone help with this AVL tree deletion?Delete 7,5,9 from the following AVL tree?AVL tree represented as an array(note that null denotes nodes with no values)9, 5, 12, 3, 6, 11, 14, 2, 4,...
more
08/01/19
Text editor theory?
As I'm always dissatisfied with existing editors, a project I always wanted to start is my own text editor. However doing text editing is serious business.Besides analyzing the source code of...
more
PHP: when to use arrays, and when to use objects for mostly-data-storing code constructs?
PHP is a mixed paradigm language, allowing to use and return non-object data types, such as arrays. I pose a question to try to clarify some guidelines for selection of arrays vs objects when...
more
07/25/19
Anyone know anything about OLAP Internals?
I know a bit about database internals. I've actually implemented a small, simple relational database engine before, using ISAM structures on disk and BTree indexes and all that sort of thing. It...
more
Can we implement a doubly-linked list using a single pointer?
I want to use a structure like:
struct node {
char[10] tag;
struct node *next;
};
I want to use the above structure to create a doubly-linked list. Is that possible and if yes, then how I can...
more
How do I sort a list of dictionaries by a value of the dictionary?
I have a list of dictionaries and want each item to be sorted by a specific property values.Take into consideration the array below, [{'name':'Homer', 'age':39}, {'name':'Bart', 'age':10}]When...
more
Difference between append vs. extend list methods in Python?
What's the difference between the list methods `append()` and `extend()`?
04/24/19
Assigning CSV values to structure?
I'm creating what should be a simple program but I'm having some difficulty assigning values from a file into a structure and it's variables. Visual Basic.
Structure:
Public Structure Teams
...
more
Distinguishing extra element from two arrays?
One of my friend was asked this question in an interview -
- You have given two integer arrays each of size 10.
- Both contains 9 equal elements (say 1 to 9)
- Only one element is...
more
How to use Boolean datatype in SAS?
In many mainstream programming languages you can use Boolean data-type (for instance, value can be either `true` or `false`) - to represent binary "true/false".
Is there a Boolean data-type in SAS...
more
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.