Gulshan Kumarperfinsights.hashnode.dev·May 11, 2024K-th Smallest Prime FractionYou are given a sorted integer array arr containing 1 and prime numbers, where all the integers of arr are unique. You are also given an integer k. For every i and j where 0 <= i < j < arr.length, we consider the fraction arr[i] / arr[j]. Return the ...DiscussJava SolutionJava
Bharat Kumarbharat2044.hashnode.dev·Apr 3, 2024What is ArrayList in java and how to create and all predefined methods and different ways to print ArrayList element?In Java, ArrayList is a resizable-array implementation of the List interface. It's part of the java.util package. Unlike arrays, ArrayList can dynamically grow and shrink in size as elements are added or removed. Here are some key characteristics of ...Discuss·1 likeJava
SATYAsatya01.hashnode.dev·Feb 25, 2024Arraylist.Introduction to ArrayList. Java ArrayList is a part of the Java collection framework and it is a class of java.util package. The ArrayList class is a resizable array. The ArrayList can grow and shrink as needed. When elements are added or removed, th...DiscussJava
YASH SHARMAsiuuu.hashnode.dev·Feb 3, 2024Arrays (for first-timers)Definition: Imagine an array as a fancy way to organize a bunch of stuff. It's like having a row of labeled boxes where you can put different things. Each box has a number, starting from 0, so it's like the boxes are in a lineup. Let's say you're a g...Discussarray
Gulshan Kumarperfinsights.hashnode.dev·Jan 9, 2024Maximum Area of Longest Diagonal RectangleYou are given a 2D 0-indexed integer array dimensions. For all indices i, 0 <= i < dimensions.length, dimensions[i][0] represents the length and dimensions[i][1] represents the width of the rectangle i. Return the area of the rectangle having the lon...DiscussJava SolutionJava
Soniya Prasadsoniyaprasad.hashnode.dev·Oct 9, 2023ArrayList in JavaAn ArrayList is a dynamic data structure in Java that is part of the Java Collections Framework. ArrayList in Java is similar to Array but with a crucial difference. Arrays have a fixed size that must be declared at initialization, while ArrayList ca...Discuss·1 like·29 readsJava
Arun Kumararunkumar0203.hashnode.dev·Sep 24, 2023Day 4: Exploring Arrays and ArrayListWhy do we need Array? Arrays are essential data structures in programming because they allow us to store and manage collections of elements efficiently. They provide a way to group related data under a single variable name, simplifying code organizat...Discuss·1 like·38 readsarray
Hemant Besracodeinjava.hashnode.dev·Sep 1, 2023An In-depth Guide to the List InterfaceList Interface The List interface is a part of the Java Collections Framework and extends the Collection interface. It represents an ordered collection of elements where duplicate values are allowed. The key feature of a list is that elements are sto...Discuss·1 like·76 readsCollectionlist
Prasoon Abhinawblog.pabhinaw.dev·Aug 19, 2023Mastering C#: Unraveling the Concepts of C# & OOPSWhat is Generics in C#? It allow us to define the specification of the data type of programming elements in a class or a method, until it is actually used in the program. In other words, generics allow us to write a class or method that can work with...DiscussC#
Hooman PegahmehrforApplication Supportappsupport.academy·Aug 1, 2023Tiny PowerShell Project 1 - Arrays are immutableUsing PowerShell, I am sure you've found yourself in situations where you need to use an array, but did you know that arrays are immutable? When we say that something is "immutable" in programming, we mean that its state or value cannot be changed af...Discuss·28 readsTiny PowerShell ProjectsPowershell