Skip to navigation Skip to content
Simon Technology Blog
  • Architecture
  • Cloud
  • Database
  • Develop
  • Hardware
  • Industry
  • Language
  • Mobile
  • Opensource
  • OS
  • Web
Main Navigation

Tag: leetcode

Leetcode 867. Transmission Matrix

Subject link: https://leetcode-cn.com/problems/transpose-matrix/

Given a matrix A, return the transpose matrix of A.

The transposition of a matrix refers to flipping the main diagonal o

October 16, 2021By Simo Mathematics leetcode, Matrix, transpositionLeave a Comment

Leetcode # 11 Simple question (given a range, just hard coding ..)

Question: Integer to Roman Numerals

Question solution: The range is limited to 0-3999, hard-coded is good–too lazy to think about logic

class Solution {
public:
string intToRoman(in

October 15, 2021By Simo Character Coding, Direct, given, hard, just, leetcode, Range, simple, topicLeave a Comment

LeetCode 12. Integer to Roman

12. Integer to Roman (integer to Roman numeral)

Link: https://leetcode-cn.com/problems/integer-to-roman /

Title:

Roman numerals contain the following seven characters: I, V, X, L,

October 9, 2021By Simo Rom integer, leetcode, romanLeave a Comment

Leetcode12 Integer to Roman

This question is not difficult, it is a tricky thing.

public class integerToRoman12 {
public String intToRoman(int< /span> num) {
StringBuilder sb = new StringBuilder();
int[] values ​​= {

October 9, 2021By Simo Rom integer, leetcode, leetcode12, romanLeave a Comment

【leetcode】83-Remove Duplicates from Sorted List

problem

Remove Duplicates from Sorted List

The basic usage of linked list is investigated.

code

/**
* Definition for singly-linked list.
* struct ListNode {
* int val;

October 9, 2021By Simo Rom Duplicates, leetcode, List, remove, sortedLeave a Comment

Leetcode is happy to brush the fifteen days – 26. Remove duplicates from sorted array

26. Remove Duplicates from Sorted Array Easy 1591 3410 Favorite Share < div> Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the

October 9, 2021By Simo Rom 15th, array, Brush, Duplicates, Happy, leetcode, remove, sorted, TitledLeave a Comment

leetcode-mid-others-150. Evaluate Reverse Polish Notation

mycode 42.30%,

Note: If the symbol is not considered, -1//3=-1 instead of 0, because it is rounded down

class Solution(object):
def evalRPN(self, tokens):
“””
:type tokens: List[s

October 5, 2021By Simo Lua evaluate, leetcode, Notation, polish, ReverseLeave a Comment

Leetcode9_ back to the number

Hahahahahahaha, I’m so happy, today’s code time and memory consumption are half of the official code haha

(Because the official code is written in C#, I use C++, manual dog head)

Title<

October 4, 2021By Simo C# a copy, leetcode, Leetcode9, NumberLeave a Comment

[Leetcode] 827. MAKING A Large Island built a huge island

In a 2D grid of?0s and?1s, we change at most one?0< /code>?to a?1.

After, what is the size of the largest island??(An island is a 4-directionally connected group of? 1s).

Example 1:

October 1, 2021By Simo Micro Services building, Huge, Island, large, leetcode, Making, oneLeave a Comment

Leetcode fifty-five questions (jumping games)

class Solution {
public:
bool canJump(vector& nums) {
int len=nums.size();
if(len==1)//Border border border!
return true ;

int max_bianjie=nums[0];//Set a boundary, initialized t

September 27, 2021By Simo Game fifteen, fifth, game, jump, leetcode, questionsLeave a Comment

Posts navigation

Page 1 Page 2
Recent Posts
  • Sencha-Touch-2 – Sencha Touch 2, Nested XML Analysis NodeValue
  • Add a separation line and format XML content
  • Is there a norm of simplified XML subsets?
  • Look at it when you write React
  • ReactJS – Present React Redux React-Router App to add the server to the Firebase hosted by the Firebase
Categories
  • Android
  • Apache
  • Apache Kafka
  • Asp
  • Auto-Test
  • Automated Build
  • Aws
  • Bitcoin
  • Browser
  • C & C++
  • C#
  • Centos
  • Cgi
  • Character
  • Cloud Service
  • Cocos2dx
  • Cordova
  • CSS
  • Data Structure
  • Delphi
  • Design Pattern
  • Dojo
  • Dubbo
  • ELK
  • Flex
  • football
  • Game
  • Hadoop
  • Hibernate
  • HTML
  • Hybrid
  • Intel
  • IOS
  • Ipad
  • iPhone
  • Java
  • Javascript
  • Jetty
  • JQuery
  • Jsp
  • Linux
  • Load Balance
  • Lua
  • Macbook
  • Macos
  • Mathematics
  • Micro Services
  • Monitoring
  • Motherboard
  • Mysql
  • Network Hardware
  • Network Marketing
  • Nginx
  • NodeJs
  • Nosql
  • Oracle
  • Os Theory
  • Performance
  • PHP
  • Postgresql
  • Power Designer
  • React
  • Redis
  • Regexp
  • Rom
  • Rss
  • Ruby
  • Search Engines
  • Shell Script
  • Silicon Valley
  • Silverlight
  • Software Design
  • Spring
  • Sql
  • Sqlite
  • Sqlserver
  • Storage
  • Storm
  • Surface
  • SVN
  • Swift
  • System Architecture
  • Tablet
  • Uncategorized
  • Unix
  • Visual Basic
  • Visual Studio
  • Web Crawler
  • WebService
  • Windows
  • Wireless
  • XML
  • ZooKeeper
Archives
  • October 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • September 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
© Simon Technology Blog 2025 • ThemeCountry Powered by WordPress