码迷,mamicode.com
首页 > 其他好文 > 详细

Geekforgeek week1

时间:2018-08-26 11:52:21      阅读:132      评论:0      收藏:0      [点我收藏+]

标签:int   http   etc   and   solution   lin   ali   -o   ons   

1. is palindrome

solution 1: check to reverse the digit, if they are the same number https://www.geeksforgeeks.org/write-a-c-program-to-reverse-digits-of-a-number/

solution 2: change int to String in java and compare it

check geekforgeek and leetcode for more solutions, recurseive

2. kth largest number

quick sort or priority queue

Geekforgeek week1

标签:int   http   etc   and   solution   lin   ali   -o   ons   

原文地址:https://www.cnblogs.com/stiles/p/geekforgeek1.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!