## PHP | octdec( ) Function

In the earlier days of computing, octal numbers and the octal numbering system was very popular for counting inputs and outputs because as it works… Read More »

In the earlier days of computing, octal numbers and the octal numbering system was very popular for counting inputs and outputs because as it works… Read More »

We are given n-processes with their completion times in form of an array. We need to find the time instant when a given process p… Read More »

Double hashing is a collision resolving technique in Open Addressed Hash tables. Double hashing uses the idea of applying a second hash function to key… Read More »

Given two sorted arrays, A and B, where A has a large enough buffer at the end to hold B. Merge B into A in… Read More »

Given a sorted array of strings which is interspersed with empty strings, write a method to find the location of a given string. Examples: Input… Read More »

Given N numbers with no duplicates, count the number of unique triplets (ai, aj, ak) such that their XOR is 0. A triplet is said… Read More »

Many a times it happens that while solving mathematical expressions we require a number to be raised by a specific value. We also call this… Read More »

We have an array of the form {a0, a1, a2….., an, b0, b1, b2, …..bn} and our task is to rearrange the same in theform… Read More »

A lexical analyzer uses the following patterns to recognize three tokens T1, T2, and T3 over the alphabet {a,b,c}. T1: a?(b∣c)*a T2: b?(a∣c)*b T3: c?(b∣a)*c… Read More »

Consider the following four relational schemas. For each schema, all non-trivial functional dependencies are listed, The underlined attributes are the respective primary keys. Schema I:… Read More »

Consider a matrix P whose only eigenvectors are the multiples of . Consider the following statements. (I) P does not have an inverse (II) P… Read More »

Let G be a simple undirected graph. Let TD be a depth first search tree of G. Let TB be a breadth first search tree… Read More »

The instruction pipeline of a RISC processor has the following stages: Instruction Fetch (IF), Instruction Decode (ID), Operand Fetch (OF), Perform Operation (PO) and Writeback… Read More »

Consider the weights and values of items listed below. Note that there is only one unit of each item. The task is to pick a… Read More »

Consider the relations r(A, B) and s(B, C), where s.B is a primary key and r.B is a foreign key referencing s.B. Consider the query… Read More »