HardRelated Topics: Hash Table / String / Greedy / Sorting / CountingLeetCode S...
Given an integer array nums, find the maximum possible bitwise OR of a subset of...
806. Number of Lines To Write String
tags: Easy、String
Given two arrays of stri...
前言
嘿嘿~今天我們要來挑戰一個有趣的設計題目!你是否曾經想過,要設計一個特別的堆疊,不僅能執行一般的 push 和 pop 操作,還能在 O(1) 時間內快...
69. Sqrt(x)
题目描述:
實現 int sqrt(int x) 函數,計算並返回 x 的平方根,其中 x 是非負整數。由於返回類型是整數,結果只保留整...
這道題主要是判斷一個整數是否是回文數字。回文數字是指正著讀和反著讀都相同的數字。
題目:給定一個整數 x,判斷它是否是回文數字。如果一個數字是負數,它不會是回文...