artemisrj
码龄14年
求更新 关注
提问 私信
  • 博客:491,019
    社区:547
    491,566
    总访问量
  • 310
    原创
  • 78
    粉丝
  • 15
    关注
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:浙江省
加入CSDN时间: 2011-04-25
博客简介:

artemisrj的专栏

博客描述:
查看详细资料
个人成就
  • 获得62次点赞
  • 内容获得48次评论
  • 获得268次收藏
  • 代码片获得100次分享
创作历程
  • 118篇
    2016年
  • 48篇
    2015年
  • 123篇
    2014年
  • 28篇
    2013年
成就勋章
TA的专栏
  • 1----------编程语言基础-----------
  • C++/C
    127篇
  • Javascript
    49篇
  • python
    28篇
  • JAVA
    7篇
  • processing
    3篇
  • R
    2篇
  • 2---------可视化&&前端-----------
    1篇
  • d3
    11篇
  • jquery
    2篇
  • css
    5篇
  • 可视化
    6篇
  • 3---机器学习/自然语言处理----
  • 自然语言处理
    7篇
  • 文本
    3篇
  • 深度学习
    3篇
  • 烟雾检测
  • 机器学习
    9篇
  • 数据处理
    1篇
  • 4---------数据库---------
  • 数据库
    5篇
  • SQL2005
    1篇
  • SQLite
    1篇
  • 5---------软件的使用--------
  • unity3D
    1篇
  • MFC
    11篇
  • VS
    1篇
  • eclipse
    1篇
  • 6-------------杂--------------
    2篇
  • 人脸识别
    1篇
  • 科研
    2篇
  • 个人
    1篇
  • 语音识别
    2篇
  • linux
    2篇
  • 网址
    1篇
  • pat
    11篇
  • 系统
    1篇
  • html
  • jetbrains
    1篇
  • 计算机网络
    1篇
  • 刷题
  • 刷题
    1篇
  • leetcode
    48篇

TA关注的专栏 0

TA关注的收藏夹 0

TA关注的社区 4

TA参与的活动 0

  • 最近
  • 文章
  • 专栏
  • 代码仓
  • 资源
  • 收藏
  • 关注/订阅/互动
更多
  • 最近

  • 文章

  • 专栏

  • 代码仓

  • 资源

  • 收藏

  • 关注/订阅/互动

  • 社区

  • 帖子

  • 问答

  • 课程

  • 视频

搜索 取消

[编程题] 偶数大翻转

今天的计算机课上,老师给同学们出了一道题: 输入n个数,请将其中的偶数的二进制反转。 eg:输入1 6 5 其中6是偶数,二进制表示为110,反转后为011,代表3,所以最终输出1 3 5. 小贱君最近脑子不怎么好使,想了半天也没想出来如何做,最后他向你寻求帮助了,帮帮可怜的小贱君吧!输入描述:输入包含多组测试数据。对于每组测试数据:N — 输入的数字个数N个数:a0,a1,…,an-1保证
原创
发布博客 2016.08.06 ·
1227 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

【leetcode】36. Valid Sudoku

36. Valid SudokuDetermine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with the character ‘.’.主要是mask可以减少内存存储,
原创
发布博客 2016.07.30 ·
703 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

【leetcode】53. Maximum Subarray

53. Maximum Subarray Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [−2,1,−3,4,−1,2,1,−5,4], the contiguous subar
原创
发布博客 2016.07.17 ·
572 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

【leetcode】63. Unique Paths II

Follow up for “Unique Paths”:Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space is marked as 1 and 0 respectively in the grid.For ex
原创
发布博客 2016.07.17 ·
445 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【leetcode】110. Balanced Binary Tree

Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by
原创
发布博客 2016.07.16 ·
363 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【leetcode】66. Plus One

Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at the head of the list.class Solution {public:
原创
发布博客 2016.07.16 ·
407 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【leetcode】46. Permutations

Given a collection of distinct numbers, return all possible permutations.For example, [1,2,3] have the following permutations: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2
原创
发布博客 2016.07.15 ·
307 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C++一些函数 备用 markdown

cppreference输入输出 重定向 freopen(“input.txt”, “r”, stdin); 整行输入string a;#include<iostream> getline(cin, a); 因为那个啥超时的原因,需要C语言 char a[100];includeincludestring c; getline(cin,c); cin输入字母和数字int a[3],
原创
发布博客 2016.07.15 ·
876 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【leetcode】62. Unique Paths

class Solution {private: int backtrack(int r,int c,int m,int n){ if(r==m-1&&c==n-1){ return 1; } if(r>=m||c>=n){ return 0; } return b
原创
发布博客 2016.07.15 ·
295 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【leetcode】28. Implement strStr()

第一种,javascript原生态函数,108ms/** * @param {string} haystack * @param {string} needle * @return {number} */var strStr = function(haystack, needle) { return haystack.indexOf(needle);};第二种,朴素字符串匹配
原创
发布博客 2016.07.15 ·
425 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【leetcode】27. Remove Element

Given an array and a value, remove all instances of that value in place and return the new length.Do not allocate extra space for another array, you must do this in place with constant memory.The order
原创
发布博客 2016.07.08 ·
370 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【leetcode】26. Remove Duplicates from Sorted Array

Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this in place with cons
原创
发布博客 2016.07.07 ·
329 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【leetcode】25. Reverse Nodes in k-Group

Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is.You
原创
发布博客 2016.07.06 ·
288 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【leetcode】23. Merge k Sorted Lists

Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity./** * Definition for singly-linked list. * function ListNode(val) { * this.val = val; * thi
原创
发布博客 2016.07.06 ·
258 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【leetcode】24. Swap Nodes in Pairs

Given a linked list, swap every two adjacent nodes and return its head.For example, Given1->2->3->4, you should return the list as 2->1->4->3.Your algorithm should use only constant space. You may not
原创
发布博客 2016.07.05 ·
324 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【leetcode】21. Merge Two Sorted Lists

Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists./** * Definition for singly-linked list. * function ListNo
原创
发布博客 2016.07.05 ·
289 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【leetcode】20. Valid Parentheses

Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string is valid.The brackets must close in the correct order, “()” and “()[]{}” are all valid but “
原创
发布博客 2016.07.05 ·
333 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【leetcode】19. Remove Nth Node From End of List

Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the linke
原创
发布博客 2016.07.04 ·
261 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【leetcode】17. Letter Combinations of a Phone Number

Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephone buttons) is given below. Input:Digit string “23
原创
发布博客 2016.07.04 ·
283 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【leetcode】16. 3Sum Closest

Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exactly
原创
发布博客 2016.07.04 ·
253 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多