Gulshan Kumarperfinsights.hashnode.dev·a day agoRotate ImageYou are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise). You have to rotate the image in-place, which means you have to modify the input 2D matrix directly. DO NOT allocate another 2D matrix and do the rotat...DiscussJava SolutionJava
Jemin Kikanijemin.hashnode.dev·Feb 27, 2024Day 4: how many types of an Conditional Statement ?Conditional statements are used to perform different actions based on different conditions. In JavaScript we have the following conditional statements: ● Use if to specify a block of code to be executed, if a specified condition is true ● Use else...Discussgo to statment
Gulshan Kumarperfinsights.hashnode.dev·Nov 26, 2023Create a function: find index of first non-repeating lowercase letter; return -1 if none.The NonRepeatingFinder class finds the index of the first non-repeating character in a given string by iterating through each character and checking for duplicates. class NonRepeatingFinder { String inputString; int stringLength; public ...DiscussJava SolutionJava
Ayesha Irshadayeshairshad.hashnode.dev·Jul 23, 2023Demystifying Big O of N^2: Understanding Quadratic Time ComplexityIntroduction In the realm of algorithm analysis, Big O notation plays a crucial role in quantifying the efficiency of various algorithms. Big O of N^2, denoted as O(N^2), represents a quadratic time complexity, indicating that the performance of an a...Discuss#big o notation
Vaishnavi Shrivastavavaishnavi1511.hashnode.dev·Apr 1, 2023Print a hollow rectangle star with the help of nested loopimport java.util.Scanner; /** * Link4 */ public class Link { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("enter a number"); int n = sc.nextInt(); System.out...Discussnestedloops
Nakul Goel01nakulgoel.hashnode.dev·Dec 8, 2022JavaScript -IX Nested loops || WebDev Course By Nakul Goel || Day-9 || Free Web Development courseThis is the ninth lecture of the WEBDEV Course by Nakul Goel, today we will be learning what Nested loops are in JavaScript. The detailed video lecture is below:- https://www.youtube.com/watch?v=BuG-87_PAmU Before moving ahead Important channels to...Discuss·10 likesWEBDEV Coursenestedloops