Resources
Answers
Examples
Sign in
Get Started
What do you want to save?
Add Code snippet
New code examples
C
2022-03-16 14:40:01
how to add to the end of a linked list
class Node { Object data; Node next; Node(Object d,Node n) { data = d ; next = n ; } public static Node addLast(Node header, Object x) { // save the reference to the header so we can return it. Node ret...
Add solution
Other
2022-03-05 10:45:35
insertion in binary tree
public static Node insert(Node root, int x){ if (root == null) return new Node(x); else if(x>root.getData()) root.setRightChild(insert(root.getRightChild(),x)); else root.setLeftChild(insert(root.getLeftChild(),x)); ...
Add solution
Java
2021-11-01 16:31:14
how to reverse a linked ist
class LinkedList { static Node head; static class Node { int data; Node next; Node(int d) { data = d; next = null; } } /* Function to reverse the lin...
Add solution
Java
2021-10-09 01:56:04
printtree() java
//printtree() java import java.util.ArrayList; import java.util.Collections; import java.util.List; public class BTreePrinterTest { private static Node<Integer> test1() { Node<Integer> root = new Node<Integer>(2); ...
Add solution
Java
2021-09-16 11:21:03
adding an element to the end of a linked list java
class Node { Object data; Node next; Node(Object d,Node n) { data = d ; next = n ; } public static Node addLast(Node header, Object x) { // save the reference to the header so we can return it. Node ret...
Add solution
Best helpers
daily
weekly
monthly
for 3 months
John
+5
Laiz
+5
Jgr0
+5
BrianMartha Klassanos
+5
T.A. N
+5
Edgar.W
+5
Indranil Debnath
+5
Stephen Meschke
+5
Deadcode
+5
Juliette
+5
Abraham Chan
+5
Alinamolnia
+5
Orlp
+5
Elvis Bertram
+5
Beadle2
+5
JinJan
+5
show more
This website uses cookies to make IQCode work for you. By using this site, you agree to our
cookie policy
Welcome Back!
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign in
E-mail
Password
Recover lost password
Log in
Or log in with
Not registered?
Sign up takes less than a minute
Create a Free Account
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign up
Email
Password
Sign up for free
Or sign up with
By signing up, you agree to the
Terms and Conditions
and
Privacy Policy
. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.