<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Soalan Queue by Ramlah Mailok</title>
      <link>https://padlet.com/ramlahmailok/SoalanQueue</link>
      <description>Sila jawab soalan ini dan akan dibincangkan pada hari Jumaat 7 Hb Ogos 2015</description>
      <language>en-us</language>
      <pubDate>2015-08-04 00:08:03 UTC</pubDate>
      <lastBuildDate>2025-11-02 21:33:07 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title></title>
         <author>ramlahmailok</author>
         <link>https://padlet.com/ramlahmailok/SoalanQueue/wish/65296147</link>
         <description><![CDATA[Q.enqueue<p>1.<span> </span>Suppose a Queue of char has been implemented. What happens if the following statements are executed? </p><p>Queue Q; </p><p>char n1, n2, n3; </p><p>Q.enqueue(‘a’); </p><p>Q.enqueue(‘b’); </p><p>Q.enqueue(‘c’); </p><p>n1 = Q.dequeue( ); </p><p>n2 = Q.dequeue( ); </p><p>Q.enqueue(‘a’); </p><p>n3 = Q.dequeue( ); </p><p>n1 = Q.headptr;</p>2. <span style="font-size: 13px;">Write the </span><span style="font-size: 13px;">function </span><b style="font-size: 13px;">oldestFirst</b><span style="font-size: 13px;"> that put </span><span style="font-size: 13px;">the oldest person at the beginning of the queue (according to the year of</span><span style="font-size: 13px;"> birth). If there is more than one such person, their order at the</span><span style="font-size: 13px;"> beginning of the queue must be the same as in the original queue. The order </span><span style="font-size: 13px;">of other elements must be preserved. </span><span style="font-size: 13px;">Example: </span><span style="font-size: 13px;"><br></span>
<p>Before change:
front-&gt;12;1988-&gt;75;1945-&gt;13;1946-&gt;87;1968-&gt;97,1968-&gt;23;1945&lt;-rear
</p><p>After change:
front-&gt;75;1945-&gt;23;1945-&gt;12;1988-&gt;13;1946-&gt;87;1968-&gt;97,1968&lt;-rear</p>]]></description>
         <enclosure url="" />
         <pubDate>2015-08-04 00:10:20 UTC</pubDate>
         <guid>https://padlet.com/ramlahmailok/SoalanQueue/wish/65296147</guid>
      </item>
   </channel>
</rss>
