Skip to content

Instantly share code, notes, and snippets.

View bahriddin's full-sized avatar
🎯
Focusing

Bahriddin Abdiev bahriddin

🎯
Focusing
View GitHub Profile
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def isPalindrome(self, head):
"""
:type head: ListNode
package com.company;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int q = in.nextInt();
int a, b, d, tmp, res;
package com.company;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
public class Main {
public static void main(String[] args) throws IOException {