Rectangular chocolate bar Create at least one piece which consists of exactly nTiles tiles.
You have a rectangular chocolate bar that consists of width x height square tiles. You can split it into two rectangular … Read More
Interview Questions asked in Google, Microsoft, Amazon
by Dhaval Dave
You have a rectangular chocolate bar that consists of width x height square tiles. You can split it into two rectangular … Read More
by Dhaval Dave
by Dhaval Dave
Given two sequences, print the longest subsequence present in both of them.
Examples:
LCS for input Sequences “ABCDGH” and “AEDFHR” is “ADH” of length 3.
LCS for input Sequences “AGGTAB” and
by Dhaval Dave
With two different solutions.
Eg : Input : teeterson Output : r,
by Dhaval Dave
We have given Two methods in O(n^2)
by Dhaval Dave
by Dhaval Dave
Method 1 (Brute Force Method)
We can consider all substrings.
One by one and check for each substring whether it contains all unique characters or not.
There
by Dhaval Dave
Input: In-order traversal in[] = {4, 2, 5, 1, 3, 6} Pre-order traversal pre[] = {1, 2, 4, 5, 3,
by Dhaval Dave
Online Round Coding Question:
Q1. Given a float number 7.64, convert it into the string WITHOUT using any inbuilt function/library.
for eg:
input
float no.: 7.64
output
string:
by Dhaval Dave
Given a float number convert it into the string WITHOUT using any inbuilt Function
Method 1:
class Float2String { public static void main(String[] args) { float f=7.64f; String