Find Pythagorean Triplets in an array
which solves equation a^2 + b^2 = c^2.
Method 1 : Brute Force
Interview Questions asked in Google, Microsoft, Amazon
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 by Dhaval Dave

1) Keep a Min & Max Heap of K size 2) Store first K elements
by Dhaval Dave
by Dhaval Dave

by Dhaval Dave
char * strtok ( char * str, const char * delimiters );
What it does : Split string into tokens
A sequence of calls to this function split str into tokens,
which are
by Dhaval Dave
