Home
Gaurav's GitHub Page
Cancel

Binary Search Tree - Insert

PROBLEM DESCRIPTION: https://practice.geeksforgeeks.org/problems/insert-a-node-in-a-bst/1# Given a BST and a key K. If K is not present in the BST, Insert a new Node with a value equal to K into t...

String Palindrome

Problem Description: Palindrome String package com.gauk; public class Solution { /* * Given a string, determine if it is a palindrome, considering only * alphanumeric characters and igno...

Find Square Root

Problem Description Given a number N, find the square root of that number. If the number is not a perfect square, then return -1 Solution First approach - Brute Force Brute Force: Loop through ...