Techiedelight.com promote

Site Title : Techie Delight - Coding made easy

Site Description : Techie Delight is a leading platform for technical interview preparation. It offers huge collection of data structure problems to improve algorithmic skills and helps crack interviews of top tech companies.

Terminology and Representations of Graphs - Techie Delight

Link: https://www.techiedelight.com/terminology-and-representations-of-graphs/

FREE1. Undirected graph. An undirected graph (graph) is a graph in which edges have no orientation. The edge (x, y) is identical to the edge (y, x), i.e., they are not ordered pairs. The maximum number of edges possible in an undirected graph without a loop is n(n – 1)/2. 2. Directed graph. A Directed graph (di-graph) is a graph in which edges have orientations. i.e. ... See Details

Created: 2 days ago

How to Disable Spring Boot Security - Techie Delight

Link: https://www.techiedelight.com/disable-spring-boot-security/

FREEIn this post, we will discuss how to disable security on a Spring Boot project without removing security dependency from the application. To secure our Spring Boot application, we can add the spring-boot-starter-security dependency to pom.xml, as shown in the following example: ... See Details

Created: 6 days ago

How to remove last element of a List in Java - Techie Delight

Link: https://www.techiedelight.com/remove-last-element-list-java/

FREEIn this quick article, we’ll see how to remove last element of a List in Java. We can use remove(int index) method of the List interface which removes an element at the specified position in the list. To remove the last element, we need to pass index of the last element as shown below. ... See Details

Created: 3 days ago

Identify if a string is numeric in C# - Techie Delight

Link: https://www.techiedelight.com/identify-string-is-numeric-csharp/

FREEThe idea is to use regular expression ^[0-9]+$ or ^\\d+$ which checks the string for numeric characters. This can be implemented using Regex.IsMatch method. ... See Details

Created: 2 days ago

Deletion from BST (Binary Search Tree) - Techie Delight

Link: https://www.techiedelight.com/deletion-from-bst/

FREEGiven a BST, write an efficient function to delete a given key in it. To delete a node from BST, there are three possible cases to consider: Case 1: Deleting a node with no children: simply remove the node from the tree. Case 2: Deleting a node with two children: call the node to be deleted N.Do not delete N.Instead, choose either its in-order successor node or its in-order predecessor node, R. ... See Details

Created: 2 days ago

Stack Implementation in C - Techie Delight

Link: https://www.techiedelight.com/stack-implementation/

FREEThis articles covers stack implementation in C language. A stack is a linear data structure that serves as a collection of elements with push, pop and pop.. The push and pop operations occur only at one end of the structure, referred to as the top of the stack. The order in which elements come off a stack gives rise to ... See Details

Created: 2 days ago

Euclid’s Algorithm to find GCD of two numbers - Techie Delight

Link: https://www.techiedelight.com/euclids-algorithm-to-find-gcd-of-two-numbers/

FREEThe Euclid’s algorithm (or Euclidean Algorithm) is a method for efficiently finding the greatest common divisor (GCD) of two numbers. The GCD of two integers X and Y is the largest number that divides both of X and Y (without leaving a remainder). It is based on the principle that the greatest common divisor of two ... See Details

Created: 5 days ago

Convert a vector of chars to std::string in C++ - Techie

Link: https://www.techiedelight.com/convert-vector-chars-std-string/

FREEDownload Run Code. Output: abc . 3. std::transform. We can also use the standard algorithm std::transform which applies an operation to elements of the specified range and stores the result in another range which begins at specified output iterator. The operation may be an unary operation function, a lambda expression or an object of a class implementing the ()operator. ... See Details

Created: 2 days ago

Difference between Static and Dynamic Binding in C++

Link: https://www.techiedelight.com/difference-between-static-dynamic-binding-cpp/

FREEDownload Run Code. Output: Sum is 30 Sum is 60 . Example of Dynamic Binding in C++: Consider below code where we have a base class B and a derived class D. Base class B has a virtual function f() which is overridden by function in the derived class D. i.e. D::f() overrides B::f().. Now consider lines 30-34 where the decision as to which class’s function will be invoked depends on the dynamic ... See Details

Created: 3 days ago

How to find execution time of a C program - Techie Delight

Link: https://www.techiedelight.com/find-execution-time-c-program/

FREEDownload Run Code. Output : Time elpased is 3 seconds . 3. gettimeofday() The gettimeofday() function returns the wall clock time elapsed since the Epoch and store it in the timeval structure, expressed as seconds and microseconds.. It is defined in header file and takes two arguments – the first arugment is reference to the timeval structure and the second argument is a null ... See Details

Created: 1 days ago

Recently promote Sites

Recently Searched

Most Popular Searched