<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>properties of binary search tree in data structure - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/properties-of-binary-search-tree-in-data-structure/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/properties-of-binary-search-tree-in-data-structure/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Mon, 13 Sep 2021 07:07:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>properties of binary search tree in data structure - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/properties-of-binary-search-tree-in-data-structure/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is Binary Tree in Data Structures ?</title>
		<link>https://www.wikitechy.com/interview-questions/data-structure/what-is-binary-tree-in-data-structures/</link>
					<comments>https://www.wikitechy.com/interview-questions/data-structure/what-is-binary-tree-in-data-structures/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 16:37:21 +0000</pubDate>
				<category><![CDATA[Data Structure]]></category>
		<category><![CDATA[a full binary tree with n leaves contains]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[almost complete binary tree]]></category>
		<category><![CDATA[Altimetrik India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[array to bst]]></category>
		<category><![CDATA[b tree in data structure]]></category>
		<category><![CDATA[Bharti Airtel interview questions and answers]]></category>
		<category><![CDATA[binary search tree example]]></category>
		<category><![CDATA[binary search tree in data structure]]></category>
		<category><![CDATA[binary tree]]></category>
		<category><![CDATA[binary tree example]]></category>
		<category><![CDATA[binary tree in data structure program]]></category>
		<category><![CDATA[binary tree properties]]></category>
		<category><![CDATA[binary treetypes of binary tree]]></category>
		<category><![CDATA[BMC Software interview questions and answers]]></category>
		<category><![CDATA[bst deletion]]></category>
		<category><![CDATA[bst in data structure]]></category>
		<category><![CDATA[bst java]]></category>
		<category><![CDATA[bst traversal]]></category>
		<category><![CDATA[bst tree]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Collabera Te interview questions and answers]]></category>
		<category><![CDATA[Comodo India Interview Questions and Answers]]></category>
		<category><![CDATA[complete binary tree in data structure]]></category>
		<category><![CDATA[complete binary tree properties]]></category>
		<category><![CDATA[data tree]]></category>
		<category><![CDATA[database tree structure]]></category>
		<category><![CDATA[define bst]]></category>
		<category><![CDATA[define tree in data structure]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[difference between binary tree and complete binary tree]]></category>
		<category><![CDATA[extended binary tree]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[full binary tree]]></category>
		<category><![CDATA[full binary tree number of nodes]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[Globallogic India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[perfect binary tree]]></category>
		<category><![CDATA[properties of binary search tree]]></category>
		<category><![CDATA[properties of binary search tree in data structure]]></category>
		<category><![CDATA[properties of binary tree]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Sapient Consulting Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[strictly binary tree]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[Tracxn Technologies Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[tree algorithms]]></category>
		<category><![CDATA[tree data structure]]></category>
		<category><![CDATA[tree structure]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[Wipro Infotech interview questions and answers]]></category>
		<category><![CDATA[WM Global Technology Services India Pvt.Ltd Limited (WMGTS) interview questions and answers]]></category>
		<category><![CDATA[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Yodlee Infotech Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=495</guid>

					<description><![CDATA[Answer : Binary tree is a special type of data structure...]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="what-is-binary-tree-in-data-structures" class="color-pink">What is Binary Tree in Data Structures ?</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li><a href="https://www.wikitechy.com/technology/c-program-lowest-common-ancestor-binary-search-tree/" target="_blank" rel="noopener">Binary tree</a> is a special type of <a href="https://www.wikitechy.com/technology/applications-tree-data-structure/" target="_blank" rel="noopener">data structure</a>. In binary tree, every node can have a maximum of 2 children, which are known as Left child and Right Child.</li>
<li>It is a method of placing and locating the records in a database, especially when all the data is known to be in random access memory (RAM).</li>
<li>A <a href="https://www.wikitechy.com/technology/c-program-check-binary-tree-bst-not/" target="_blank" rel="noopener">binary tree</a> has the benefits of both an ordered array and a linked list as search is as quick as in a <a href="https://www.wikitechy.com/technology/algorithm-in-c-median-of-two-sorted-arrays/" target="_blank" rel="noopener">sorted array</a> and insertion or deletion operation are as fast as in linked list.</li>
</ul>
</div>
</div>
<div class="ImageContent">
<div class="hddn"><img decoding="async" class="img-responsive center-block" src="https://cdn.wikitechy.com/interview-questions/data-structure/what-is-binary-tree-in-data-structures.jpg" alt="What is Binary Tree in Data Structures" /></div>
</div>
<div class="TextHeading">
<div class="hddn">
<h2 id="representation-of-binary-tree-using-array" class="color-green">Representation of Binary Tree using Array</h2>
</div>
</div>
<ul>
<li><a href="https://www.wikitechy.com/interview-questions/data-structure/if-the-depth-of-a-tree-is-3-levels-then-what-is-the-size-of-the-tree/" target="_blank" rel="noopener">Binary tree</a> using array represents a node which is numbered sequentially level by level from left to right. Even empty nodes are numbered.</li>
</ul>
<div class="TextHeading">
<div class="hddn">
<h2 id="sample-code" class="color-blue">Sample Code</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-javascript code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-javascript code-embed-code">// JAVA implementation of tree using array <br/>// numbering starting from 0 to n-1. <br/>import java.util.*;<br/>import java.lang.*;<br/>import java.io.*;<br/><br/>class bTree {<br/>    public static void main(String[] args) {<br/>        btree_Array obj = new btree_Array();<br/>        obj.Root(&quot;P&quot;);<br/>        // obj.set_Left(&quot;Q&quot;, 0); <br/>        obj.set_Right(&quot;R&quot;, 0);<br/>        obj.set_Left(&quot;S&quot;, 1);<br/>        obj.set_Right(&quot;T&quot;, 1);<br/>        obj.set_Left(&quot;U&quot;, 2);<br/>        obj.print_Tree();<br/>    }<br/>}<br/><br/>class btree_Array {<br/>    static int root = 0;<br/>    static String[] s = new String[10];<br/><br/>    /*create root*/<br/>    public void Root(String key) {<br/>        s[0] = key;<br/>    }<br/><br/>    /*create left son of root*/<br/>    public void set_Left(String key, int root) {<br/>        int t = (root * 2) + 1;<br/><br/>        if (s[root] == null) {<br/>            System.out.printf(&quot;Can&#039;t set child at %d, no parent found\n&quot;, t);<br/>        } else {<br/>            s[t] = key;<br/>        }<br/>    }<br/><br/>    /*create right son of root*/<br/>    public void set_Right(String key, int root) {<br/>        int t = (root * 2) + 2;<br/><br/>        if (s[root] == null) {<br/>            System.out.printf(&quot;Can&#039;t set child at %d, no parent found\n&quot;, t);<br/>        } else {<br/>            s[t] = key;<br/>        }<br/>    }<br/><br/>    public void print_Tree() {<br/>        for (int i = 0; i &lt; 10; i++) {<br/>            if (s[i] != null)<br/>                System.out.print(s[i]);<br/>            else<br/>                System.out.print(&quot;-&quot;);<br/><br/>        }<br/>    }<br/>}</code></pre> </div>
<h2 id="output" class="color-purple">Output</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-javascript code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-javascript code-embed-code">Can&#039;t set child at 3, no parent found<br/>Can&#039;t set child at 4, no parent found<br/>P-R--U----</code></pre> </div>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/data-structure/what-is-binary-tree-in-data-structures/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
