Answer the question
In order to leave comments, you need to log in
What is the applicability of data structures?
hello, I'm a beginner in programming and I don't quite understand why we need such things as binary search trees, hash tables, and so on? what do they give?
Answer the question
In order to leave comments, you need to log in
There is no way to make a table responsive. If you want the content to be displayed under any conditions as in the top picture, I usually display a horizontal scroll.
To make content in 2 columns, it is not necessary to use a table.
All you need is to make a flex block.
<div class="flex_block">
<div>Колонка 1</div>
<div>Колонка 2</div>
</div>
.flex_block {
width: 100%;
display: flex;
}
.flex_block > div {
flex: 1 1 auto;
}
They are needed so that strings / lists / dictionaries / other data structures from the "standard library" work well and quickly.
when developing new data structures, programmers want to increase the efficiency of working with data (most often they are looking for a way to increase the speed of data processing, or reduce the size of their storage / transportation).
searching for data, for example, in a binary tree, is faster than searching through the entire list by orders of magnitude.
These are things that give a clearer understanding of the work of libraries and programs. (For example, how it searches for a database or how parameters are passed to a function in the asm language)
They also serve as a kind of tool that you can use in your projects.
They will help make it concise, faster and more readable.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question